Frage im Vorstellungsgespräch bei Cognizant

Q. Why do we start our code with document.ready() in jQuery?

Antwort im Vorstellungsgespräch

Anonym

26. Juli 2021

The ready() method is used to make a function available after the document is loaded. Whatever code you write inside the $(document ). ready() method will run once the page DOM is ready to execute JavaScript code