+ 1

is there any main method or function in JavaScript from which execution starts..??

22nd Jun 2016, 3:15 PM
Sudhir Dilip Salunkhe
Sudhir Dilip Salunkhe - avatar
3 ответов
+ 3
No you can execute any piece of code straight away put the js files in the end of the <body> tag so that html and css are completely loaded before js
23rd Jun 2016, 4:48 AM
Sumanth Reddy
Sumanth Reddy - avatar
0
like said above the code will be ran whenever the script tag is loaded. however you often see the Jquery 'documentready' used as a sort of entry point. but for different reasons.
27th Sep 2016, 9:05 PM
Menno Guldemond
Menno Guldemond - avatar