DEV Community

Harish Sarangan
Harish Sarangan

Posted on

Javascript - JS

  1. Js is single thread programing language which execute a only one task at a time
  2. It is an interpreted language
  3. 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

  1. var - Can be declared , initialized and re-declaration is possible
  2. let - Can be declared, initialized and re-declaration is not possible
  3. 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)