Raw Flashcards

1
Q

is [] truthy or falsy. what about {}

A

both are falsy

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

What does Number() do vs. parseInt()?

A

Number coerces string but and parseInt parses a number out of string

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

what does a plain assignment (just =) return

A

returns the right hand side

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