JS Variable

Programming is about manipulating data / value. Data / Value is stored in variable. To create variable in javascript using keyword var . For example var myData = 1; There are 7 data type in Javascript :

  • Number
  • String
  • Boolean
  • null
  • undefined
  • Array
  • Object

Number


View Demo

String


View Demo

Boolean


View Demo

Null


View Demo

Undefined


View Demo

Array


View Demo

Object


View Demo