NIELIT O Level Exam

Which of the following scoping type does JavaScript use?

Which of the following scoping type does JavaScript use?

निम्नलिखित में से कौन सा स्कोपिंग प्रकार जावास्क्रिप्ट का उपयोग करता है?

A. Sequential क्रमबद्ध

B. Segmental कमानी

C. Lexical शाब्दिक

D. Literal आक्षरिक




Correct Answer is :

C. Lexical



Explanation
JavaScript, like most current programming languages, employs lexical scoping. This means that functions are performed with the variable scope in effect when they were defined, rather than the variable scope in effect when they are invoked.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad