Chapter 2 - Data And Decisions Flashcards
What is a number?
A number, including floating points number
What is a string?
A series of characters
What is a boolean data?
True or false
What are the 3 primitives data types?
String
Number
Boolean
What is Null?
Even though a variable had been created, its current value is Null or nothing
What is Undefined?
Indicates that something has not been defined and given a value
How does string data must be encloses?
Between ‘ ‘ or “ “
How to write a string like Paul’s character?
Document.write(“Paul’s character”)
Use the “ because there is a ‘ in the string
What are escape séquences?
To use character that can’t be typed using a keyboard
\b
Backspace
\f
Form Feed
\n
Newline
\r
Carriage return
\t
Tab
'
Single quote
"
Double quote
\
Backslash
\xNN
nN is a number from hexadecimal
\uDDDD
DDDD is hexadecimal from Unicode
+
Adds
-
Substracts
*
Multiply
/
Divides