Types, Comparisons, Variables, Logical Operators, Functions, Data Structures, & Keywords Flashcards
Types, Comparisons, Variables, Logical Operators, Functions, Data Structures, & Keywords
1
Q
What are the 7 JavaScipt types?
A
- Number
- String
- Boolean
- Undefined
- NaN
- Symbol (new in ECMAScript 6)
- Objects
2
Q
234
A
Number
3
Q
“hello world”
A
String
4
Q
true or false
A
Boolean
5
Q
if(name === “billy) { return “hello”};
A
If Statements
6
Q
if(name ===”billy”) {
return “hello” } else {
return “world”};
A
If/Else Statements
7
Q
if(name ===”billy”) {
return “hello” } else if {
return “world”} else {
return “helloworld” }
A
Else/If Statements
8
Q
If (firstname ===”bob” && lastName ===”smith” {
return “bobsmith” };
A
Ternary Operator