ExamCompetition Forum Question Papers Ask A Question Mock Test Learn & Earn Sign Up Login Menu



-1 vote

What kind of scoping does JavaScript use?

Asked on by | Votes -1 | Views: 327 | Tags: computer science     | javascript     | array and function     | Add Bounty

What kind of scoping does JavaScript use?

A).  Literal

B).  Lexical

C).  Segmental

D).  Sequential


Share on Facebook      Share on Whatsapp       Share on Twitter




1 answers

-1 vote
Answered by on | Votes -1 |

 Lexical



Like most modern programming languages, JavaScript uses lexical scoping. This means that functions are executed using the variable scope that was in effect when they were defined, not the variable scope that is in effect when they are invoked.

Join Telegram Group




Answer This Question

Name:
Email:
Answer :
Sum of (1+3)
Submit: