Why should we have Javascript method definitions within HTML Head section ?<br/><br/> a. Its safe to have javascript code within head section<br/> b. Head section gets loaded even if there is any error in loading HTML page<br/> c. Head section gets executed first and hence assure that js method definition will be loaded before they are called<br/> d. So that we can have method definition and method call at the same place<br/>
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. Why should we have Javascript method definitions within HTML Head section ?

a. Its safe to have javascript code within head section
b. Head section gets loaded even if there is any error in loading HTML page
c. Head section gets executed first and hence assure that js method definition will be loaded before they are called
d. So that we can have method definition and method call at the same place
Ans. Head section gets executed first and hence assure that js method definition will be loaded before they are called

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     html   head section   javascript


Related Questions




Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: