Wikia

JavaScript Wiki

Watchlist Recent changes

Tutorial/Scoping

< Tutorial

A page in the
 
Introduction
 
Basics
Statements · Control Flow Statements · Comments · Objects · Functions · Style
Features
Scoping · Inheritance · DOM


It has been suggested that this page or section be merged into Wikibooks:JavaScript. (Discuss)

Functions may be defined ("nested") inside other functions, thereby freeing up some global identifiers and keeping your data safe from that of other scripts.

If a function is defined in the global namespace, i.e. outside of all other functions, it is a method of the global object, window, and may be called as window.name .

Pages on JavaScript Wiki

Add a Page
75pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
17photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki