#Javascript #Tutorial #Hindi
Link for Complete JavaScript Tutorial in Hindi for Beginners: • JavaScript Tutorial in Hindi
Link for Complete HTML and CSS Tutorial in Hindi for Beginners: • Playlist
In this video i will talk about Global variable vs Local variable in JavaScript.
In JavaScript there are two types of scope:
Local scope
Global scope
JavaScript has function scope: Each function creates a new scope.
Scope determines the accessibility (visibility) of these variables.
Variables defined inside a function are not accessible (visible) from outside the function.
Local JavaScript Variables
Variables declared within a JavaScript function, become LOCAL to the function.
Local variables have Function scope: They can only be accessed from within the function.
Global JavaScript Variables
A variable declared outside a function, becomes GLOBAL.
A global variable has global scope: All scripts and functions on a web page can access it.
In this Video Tutorial series I will giving you full training about Javascript from basic to advance level with easy and best explanation. If you like this Javascript tutorial in Hindi do leave us a comment.
Please subscribe to watch more videos like this: / @techgun
Join this channel to support Tech Gun:
/ @techgun
On this page of the site you can watch the video online JavaScript Tutorial in Hindi for Beginners [Part 22] - Global variable vs Local variable with a duration of hours minute second in good quality, which was uploaded by the user Tech Gun 03 March 2021, share the link with friends and acquaintances, this video has already been watched 43,450 times on youtube and it was liked by 892 viewers. Enjoy your viewing!