Click here to Skip to main content
12,507,358 members (72,540 online)
Click here to Skip to main content

JavaScript var Hoisting

, 23 Jan 2013 CPOL
At a quick glance what do you think the value of ‘y’ will be at each alert?When I was first beginning to work in javascript my guess would’ve been: ‘alert 1: 1’, ‘alert 2: 1’, and ‘alert 3: 2’; thinking that the global value from before the funct
This is an auto-saved draft copy of the new unpublished technical blog created by the submission wizard.

This article has not yet been approved for publication by our membership.

Please go to the Uncategorised Articles Table of Contents to view the list of available articles in this section.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160927.1 | Last Updated 23 Jan 2013
Article Copyright 2013 by joseph donley
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid