Cheat Flashcards

1
Q

Interger

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

Value , type of value

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

Pi

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

Operators

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

NaN

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

Types

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

Unicode

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

Unary operators

A

typeof

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

Binary operators

A

Take 2 values

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

NaN is not equal to NaN

A

Result of nonsensical computation and therefore not equal to result of any other nonsensical computation

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

Ternary

A

Operating on 3 values

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

undefined / null

A

No meaningful result

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

Expression

A

Fragment of code that produces a result

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

Result of prompt is always string

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

Number.isNaN(theNumber)

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

Function expression vs function declaration

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

Arrow function

A

No parentheses when only one param. No braces if body is single expression

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

Give function parameter default value

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

Side effect

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

Closure

21
Q

Call stack

22
Q

in operator in objects

23
Q

object.keys()

24
Q

object.assign(objectA, objectB)

A

Copies properties from one object to the other

25
String, number boolean are not objects
26
zeropad method
27
padstart method
28
Spread used for array argument
29
Higher Order Function
Functions that operate on other functions by taking them as arguments or returning them
30
forEach
The forEach() method calls a function for each element in an array. The forEach() method is not executed for empty elements.
31
finctionName.name
32
arr.forEach(item => {})
33
Objects curly braces and dot notation
34
Object functional instantiation
35
Objects functional instantiation with shared methods
36
ParseInt ParseFloat
Parse strings into numbers
37
while (true) ….
38
For…..in Iterate over object keys
39
82 5 mins
40
Default params
Function func(x, y = 1)
41
Spread for function calls
42
Spread in Array literals
43
Spread Object literals
44
Rest parameter
45
Destructuring Arrays
-Unpack values from arrays -Unpack properties from objects const arr = ['hans', 'sophie', 'kiki', 'madde']; const [father, daughter1, daugther2] = arr const [father, , daugther2] = arr const [father, ...others] = arr
46
Destructuring Objects
obj = { fname: 'hans', lname: 'de feber' } const {fname, lname} = obj const {fname: firstName, lname: lastName} = obj
47
48
49