Values and Variables Flashcards

1
Q

numbers

A

1, 27, .972

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

string

A

words “cat”

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

boolean

A

true or false

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

undefined

A

a possible value but hasn’t been assigned a value

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

null

A

not possible value

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

let

A

variable that allows you to change variable but not duplicate it

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

var

A

allows you to change and duplicate. not the best to use

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

const

A

variable you can’t change once assigned. best option for most cases

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

expression

A

returns a value. i.e 1+1

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

statement

A

assigns a value. i.e let cat = “Rose”

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