1104 Part IV . JavaScript Core Language Reference (Web site development)

1104 Part IV . JavaScript Core Language Reference Listing 41-2: Variable Scope Workbench Page Variable Scope Trials In this page, you define a number of variables some global, others local that are spread out in the document s Head and Body sections. When you load this page, it runs the testValues() function, which accounts for the current values of all the variable names. The script then follows up with one more value extraction that was masked in the function. The results of the page look like this: headGlobal is: Gumby headLocal value returned from head function is: Pokey aBoy is: Charlie Brown local version of hisDog is: Gromit global version of hisDog is intact: Snoopy
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.

Leave a Reply