Data types will specify what kind of values will assign to variable JS supports all types of variables
It has three types of data types
1. Stranded Data Types
Number: Assign both integers and floating values
String: it support any character nut must be inside single or double codes.
Boolean: Can assign any two values [true or false]
2. Compound Data Types
It will assign multiple values to variable compound data types are two types 1. Array, 2. Object
3. Special Data Types
This data types supports only java script
Undefined: any variable declared without value than data type is called undefined
Type of: it returns data type of variable
No comments:
Post a Comment