-
Book Overview & Buying
-
Table Of Contents
Web Developer's Reference Guide
By :
To add flexibility in language, JavaScript supports a number of built-in objects. The most commonly used objects are:
Implementations of these built-in objects are complex and different.
Global objects are objects defined outside the function. Every function can access these variables because their scope is global for all.
When you do not declare a variable and assign a value to it, then it will automatically become global.
When your code starts execution, functions and constants immediately become available. A global variable does not initialize with the new keyword. Basically, global objects are used to share same data to add properties. You can store methods within global objects in your script.
Objects that you cannot access directly for accessing those object we use global objects. We pass those object directly as arguments after declaring the global variable. You can create a number of instances and...
Change the font size
Change margin width
Change background colour