Hoisting – Variable Declaration

Description:

Variables need to be declared at the top of your functions. All variable declaration from within the function is done first and then function code is executed. Learn more about hoisting here: http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-Hoisting and here: http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-javascript-hoisting-explained/

Categories


Revisions

Leave a Reply




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

No Support