हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

What is scope of variables and types of scope variable? - Computer Applications

Advertisements
Advertisements

प्रश्न

What is scope of variables and types of scope variable?

टिप्पणी लिखिए

उत्तर

The scope of a variable is the life time of a variable of source code in which it is defined.

  • A global variable has global scope; it can be defined everywhere in the JavaScript code.
  • Variables declared within a function are defined only within the body of the function. They are local variables and have local scope.
shaalaa.com
JavaScript Variables
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 14: Introduction to Javascript - Evaluation [पृष्ठ ३१४]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
अध्याय 14 Introduction to Javascript
Evaluation | Q 2. | पृष्ठ ३१४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×