Report Bug

QusWhich of the following scoping type does JavaScript use? Qusनिम्नलिखित में से कौन सा स्कोपिंग प्रकार जावास्क्रिप्ट का उपयोग करता है?


A. Sequential
B. Segmental
C. Lexical
D. Literal


Solution
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