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
  1. Number
  2. String
  3. Boolean
  4. Undefined
  5. NaN
  6. Symbol (new in ECMAScript 6)
  7. Objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

234

A

Number

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

“hello world”

A

String

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

true or false

A

Boolean

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

if(name === “billy) { return “hello”};

A

If Statements

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

if(name ===”billy”) {
return “hello” } else {
return “world”};

A

If/Else Statements

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

if(name ===”billy”) {
return “hello” } else if {
return “world”} else {
return “helloworld” }

A

Else/If Statements

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

If (firstname ===”bob” && lastName ===”smith” {

return “bobsmith” };

A

Ternary Operator

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