Science, asked by omsingh8679, 1 year ago

What is block scoping in Javascript ?

Answers

Answered by AA69
0
Hey buddy here is ur answer !!

A variable can be either of global or local scope. A global variable is a variable declared in the main body of the source code, outside all functions, while a local variable is one declared within the body of a function or a block. Modern versions allow nested lexicalscoping.


Hope answer is helpful plz mark as brainalist one ..
Similar questions