Exploring Primitive Data Types Flashcards
(20 cards)
How many primitive data types are there in JavaScript?
There are 7 different types of primitive data in JavaScript
What are strings, numbers, and booleans?
Strings, Numbers, and Booleans are three different types of primitive data in JavaScript.
Which data types are used in JavaScript to represent a lack of a value?
Null and Undefined are two types of primitive data, used in JavaScript, to represent the lack of a value.
What are the other two types of primitive data called?
bigtint and symbol are the other two types of primitive data in JavaScript.
In JavaScript, what are strings wrapped in?
In JavaScript, Strings are wrapped with quotation marks.
Must you use the same quotation marks at the beginning and end of a string?
Yes, you must use the same quotation marks at the beginning and end of a string in JavaScript.
What is String Notation?
String Notation is Syntax Used for Creating A String. Either Double Quotes, Single Quotes, or Back Ticks.
What is Escaping Characters?
Escaping Characters is using a Backslash within a string before certain characters to give them special meanings, like including a quote within a string.
What does a BackSlash tell JavaScript?
A Backlash tells JavaScript that the following quotation mark should not be used as an indicator for the end of the string.
Does a Backslash appear on the actual website?
No. It only appears in the code.
What are the only two possible values for the boolean data type?
True and False are the only possible values for the boolean data type.
Do you need to use quotation marks for boolean data values?
No, you don’t need to use quotation marks for boolean data values.
What kind of information is good for boolean values?
Any kind of information which can have one of two values is good for being represented by boolean data.
What are three examples of information that is good for boolean values?
True or False, On or Off, Yes or No
What type of programming are Booleans an example of?
Booleans are an example of binary programming.
Which characters often represent binary programming?
0 is equivalent to false and 1 is equivalent to true.
What are Whole Numbers also known as in JavaScript?
Whole Numbers are also known as Integers in JavaScript
What are Decimal Values also known as in JavaScript?
Decimal Values are often called Floating Point Numbers.
What is ‘NaN’?
NaN is Not A Number
Is Nan a Number Data Type?
Yes, Nan is a number data type