- Js is single thread programing language which execute a only one task at a time
- It is an interpreted language
- The data type is declared during runtime that why it is called dynamically type programming language
Variables
It is container which is used to hold the values of any datatype
Variable declaration
First letter should always start with letter or _(Underscore) or numbers
follow up character can be letter or _ or numbers
Three main variable keyword
- var - Can be declared , initialized and re-declaration is possible
- let - Can be declared, initialized and re-declaration is not possible
- const - Can be declared, initialized and re-declaration is not possible also value update is not possible
Var user1 // declaration
user1 = Harish //initialization
console.log(user1) // used to print the values in the console
Top comments (0)