What are the valid scopes of a variable in JavaScript?



What are the valid scopes of a variable in JavaScript?..

Answer / Priya Kumari

The valid scopes of a variable in JavaScript are: Global Scope, Block Scope (with the let and const keywords), Function Scope, and Strict Mode Global Scope.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is escape() function?

1 Answers  


What is object freeze?

1 Answers  


how to run the servlet in tomcat

1 Answers   DELL, TCS,


Why is javascript good for websites?

1 Answers  


What is a hash javascript?

1 Answers  


What is array constructor in javascript?

1 Answers  


Taking a developer's perspective, do you think that that javascript is easy to learn and use?

1 Answers  


What are the variable naming conventions in javascript?

1 Answers  


What is decodeuri(), encodeuri() in javascript?

1 Answers  


What are a fixed-width table and its advantages in javascript?

1 Answers  


How to clone an object in javascript?

1 Answers  


why jsp

0 Answers  


Categories