what is scope in JavaScript: scope determine the accessibility (visibility) of variables or you can consider scope as a region in which variable is available for accessing.
There are three types of scope in JavaScript
(1)Block scope
(2) Function scope
(3) Global scope[script in case of let and const variable]