What is variable scope?

Submitted by: Muhammad
JavaScript variables have functional scope.
Submitted by: Muhammad

JavaScript has two scopes: global and local. A variable that is declared outside a function definition is a global variable, and its value is accessible and modifiable throughout your program. A variable that is declared inside a function definition is local.
Submitted by: Nidhi

Read Online Front End Programmer Job Interview Questions And Answers