Expert Developer JavaScript Question:
Download Job Interview Questions and Answers PDF
Explain window.onload and onDocumentReady?
Answer:
The onload function is not run until all the information on the page is loaded. This leads to a substantial delay before any code is executed.
onDocumentReady loads the code just after the DOM is loaded. This allows early manipulation of the code.
onDocumentReady loads the code just after the DOM is loaded. This allows early manipulation of the code.
Download Expert JavaScript Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
What is unshift method in JavaScript? | How will you explain closures in JavaScript? When are they used? |