Global Variable,Local Variable,Local Storage in JavaScript | JavaScript Tutorial
Global JavaScript Variables:
A JavaScript global variable is declared outside the function or declared with window object. It can be accessed from any function.
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.
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.
localStorage :
The localStorage and sessionStorage properties allow to save key/value pairs in a web browser.
The localStorage object stores data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year.
The localStorage property is read-only.
Please Subscribe us on Our Channel:
/ @programmersblogsystem
On this page of the site you can watch the video online Global Variable,Local Variable,Local Storage in JavaScript | JavaScript Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Programmers Blog System 24 January 2020, share the link with friends and acquaintances, this video has already been watched 64 times on youtube and it was liked by 1 viewers. Enjoy your viewing!