Datatypes of JavaScript Flashcards
1
Q
7 types of Datatypes
A
1.boolean
2. int
3. double
4. long
5. short
6. float
7. char
2
Q
Represents true or false
A
Boolean
3
Q
a datatype that can store whole numbers
(4, 5, 100)
A
int(integer)
4
Q
a datatypes that can store decimal numbers.
A
double
5
Q
a datatypes that can store whole number when int is not large enough to store the value. Ex:150000000000000000L
A
long
6
Q
a datatypes that can store only one value.
A
short
7
Q
datatype that can store fractional number of mix numbers.
Ex: 3 1/2.
A
float
8
Q
a datatype that store symbol and letters.
A
char