what is javascript ?
- It is a programming language of the web pages.
- It is updated and change both HTML and CSS.
- It can calculated ,manipulate and validate data.
what is javascript variables ?
- Java script variables is used to the store data values.
- Java script uses the keywords likes var,let,const to declare variables.
what is var ?
- Only use var if you MUST support old browsers.
- The var keyword was used in all JavaScript code from 1995 to 2015.
- Variables declared with the var always have Global Scope.
what is let ?
- The let declaration declares re-assignable, block-scoped local variables, optionally initializing each to a value.
- The let keyword was introduced in ES6 (2015).
what is const ?
- The const keyword was introduced in ES6 (2015).
- Variables defined with const cannot be Redeclared.
- Variables defined with const cannot be Reassigned.
- Variables defined with const have Block Scope.
Top comments (0)