Data types: Javascript support all data types.
Standard data types :
Standard data types used to assign only one value to variable. We have mainly three types of data types in standard data types.
They are :
- Number-It allow integer and floating numbers.
- String-any content placed with in ‘ ‘ or “ “.
- Boolean-It allow only values true,flase.
Compound data types:
Compound data types assign multiple values to single variable. Compound data types are
- Array
- Object
Special data types : these data types are supported by only JS. They are
- Undefined
- Null
Typeof : It is a built in function in javascript, it written the data types of a variable.
Syntax : (typeof(array name));

No comments:
Post a Comment