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.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz