MCQs > IT & Programming > JavaScript > How can you remove all of an Element’s children from the DOM?

JavaScript MCQs

How can you remove all of an Element’s children from the DOM?

Answer

Correct Answer: function empty( element ) { while ( element.firstChild ) remove( element.firstChild ); }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it