Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myFunction();
- function myFunction() {alert('this is defined after its called, but is hoisted because of the function keyword')}
- myFunction();
- var myFunction = function() {alert('this will fail, because it is not defined when it is called')}
Advertisement
Add Comment
Please, Sign In to add comment