Data Types
- JavaScript is a dynamically typed language, which means that you don't have to explicitly specify a variable's data type when you declare it.
There are two data types in javascript:
- primitive data types
- non-primitive data types
Example:
var a=30;//holding number
var b="Rahul";//holding string
Primitive data types:
There are 5 primitive data types in javascript
Non-primitive data types: