On Mon, Feb 7, 2011 at 5:14 PM, Dmitry A. Soshnikov <[email protected]> wrote: > Hi colleagues, > > Here's the summary of the recent discussion on Twitter about the "hoisting" > and its reasons. > > "Note 4. Two words about "hoisting". > > http://dmitrysoshnikov.com/notes/note-4-two-words-about-hoisting/ > > Dmitry. > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] >
Great ! It is a pleasure to read your articles and see how easily you explain things with appropriate examples. I have written messages in forums before about this behavior but honestly I didn't even know the correct term (hoisting), I didn't know the real reasons behind it and other aspects you talk about in your article. Since I realized that this could be an improvement I always try to only have one "var" declaration atop of each function block. Thank you again for these insights, -- Diego -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
