A question:
If a DOM element is created within the function to which the parent is not assigned, then is it itself destroyed when the function has been executed or does it remain to weigh in memory?
if it remains in memory, then how to destroy it?
function demoCreate(){ var domNode = document.createElement("div"); ...//здесь идет работа с ним //уничтожется ли domNode после окончания выполнения этой функции??? }