All you ever need to know about scope…

All you ever need to know about scope and functions in JavaScript is in this paragraph:

“So the rule is you can put function myfunc(){} definitions anywhere but var myfunc=function(){} have to be placed before the function is used.”

http://www.i-programmer.info/programming/javascript/3722-private-functions-in-javascript.html

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top