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.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad