What is local scope in javascript?



What is local scope in javascript?..

Answer / Harish Singh

Local scope in JavaScript refers to the area where a variable can only be accessed within the function or block it was declared. Variables declared with the let and const keywords have local scope.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What are the properties of stack?

1 Answers  


How we can add title of the page by javascript?

1 Answers  


What is null variable?

1 Answers  


Please write the Code of simple javascript calculator withot eval() function

1 Answers  


How can javascript language be separated from objects?

1 Answers  


What are the variables in javascript?

1 Answers  


What is the use of isNaN function?

1 Answers  


What is data types in javascript?

1 Answers  


What does unshift() function do in Javascript?

1 Answers  


What is scope javascript?

1 Answers  


How many hours learn javascript?

1 Answers  


What are the predefined functions in javascript?

1 Answers  


Categories