javascript Programming Glossary: letssee
Javascript scoping variables theory http://stackoverflow.com/questions/4405749/javascript-scoping-variables-theory first 6 document.writeln ' p first is ' first p function letsSee alert first var first first 4 letsSee document.writeln ' p but.. ' first p function letsSee alert first var first first 4 letsSee document.writeln ' p but now first is ' first p script head.. p script head body body html global first gets set to 6. letsSee runs and the alert if consistent should see no local variable..
|