Exploring Primitive Data Types Flashcards

(20 cards)

1
Q

How many primitive data types are there in JavaScript?

A

There are 7 different types of primitive data in JavaScript

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

What are strings, numbers, and booleans?

A

Strings, Numbers, and Booleans are three different types of primitive data in JavaScript.

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

Which data types are used in JavaScript to represent a lack of a value?

A

Null and Undefined are two types of primitive data, used in JavaScript, to represent the lack of a value.

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

What are the other two types of primitive data called?

A

bigtint and symbol are the other two types of primitive data in JavaScript.

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

In JavaScript, what are strings wrapped in?

A

In JavaScript, Strings are wrapped with quotation marks.

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

Must you use the same quotation marks at the beginning and end of a string?

A

Yes, you must use the same quotation marks at the beginning and end of a string in JavaScript.

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

What is String Notation?

A

String Notation is Syntax Used for Creating A String. Either Double Quotes, Single Quotes, or Back Ticks.

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

What is Escaping Characters?

A

Escaping Characters is using a Backslash within a string before certain characters to give them special meanings, like including a quote within a string.

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

What does a BackSlash tell JavaScript?

A

A Backlash tells JavaScript that the following quotation mark should not be used as an indicator for the end of the string.

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

Does a Backslash appear on the actual website?

A

No. It only appears in the code.

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

What are the only two possible values for the boolean data type?

A

True and False are the only possible values for the boolean data type.

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

Do you need to use quotation marks for boolean data values?

A

No, you don’t need to use quotation marks for boolean data values.

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

What kind of information is good for boolean values?

A

Any kind of information which can have one of two values is good for being represented by boolean data.

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

What are three examples of information that is good for boolean values?

A

True or False, On or Off, Yes or No

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

What type of programming are Booleans an example of?

A

Booleans are an example of binary programming.

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

Which characters often represent binary programming?

A

0 is equivalent to false and 1 is equivalent to true.

17
Q

What are Whole Numbers also known as in JavaScript?

A

Whole Numbers are also known as Integers in JavaScript

18
Q

What are Decimal Values also known as in JavaScript?

A

Decimal Values are often called Floating Point Numbers.

19
Q

What is ‘NaN’?

A

NaN is Not A Number

20
Q

Is Nan a Number Data Type?

A

Yes, Nan is a number data type