JavaScript Data Types Flashcards

Learn about data types in JavaScript

1
Q

How many data types are used in JavaScript and what are they?

A

There are 8 data types used in JavaScript, they are:
- Boolean,
- Null,
- Undefined,
- Number,
- Bigint,
- String,
- Symbol,
- Object

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

What is boolean?

A

Boolean is a data type that can only contain true or false.

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

What is null?

A

A null value represents a reference that points, generally intentionally, to a non-existent or invalid object or address.

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

What is undefined?

A

Undefined is a data type that that is automatically assigned to variables that have just been declared, or to formal arguments for which there are no arguments.

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

What is a number?

A

A number is an integer or a floating point number.

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

What is a BigInt?

A

A BigInt is an integer with arbitrary precision.

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

What is a string?

A

A string is a sequence of characters that represent a text value.

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

What is a symbol?

A

A symbol is a data type whose instances are unique and immutable.

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

What is an object?

A

An object is a collection of properties.

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