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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Represents true or false

A

Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

a datatype that can store whole numbers
(4, 5, 100)

A

int(integer)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

a datatypes that can store decimal numbers.

A

double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

a datatypes that can store whole number when int is not large enough to store the value. Ex:150000000000000000L

A

long

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

a datatypes that can store only one value.

A

short

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

datatype that can store fractional number of mix numbers.
Ex: 3 1/2.

A

float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

a datatype that store symbol and letters.

A

char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly