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

A
21
Q

Call stack

A
22
Q

in operator in objects

A
23
Q

object.keys()

A
24
Q

object.assign(objectA, objectB)

A

Copies properties from one object to the other

25
Q

String, number boolean are not objects

A
26
Q

zeropad method

A
27
Q

padstart method

A
28
Q

Spread used for array argument

A
29
Q

Higher Order Function

A

Functions that operate on other functions by taking them as arguments or returning them

30
Q

forEach

A

The forEach() method calls a function for each element in an array.

The forEach() method is not executed for empty elements.

31
Q

finctionName.name

A
32
Q

arr.forEach(item => {})

A
33
Q

Objects curly braces and dot notation

A
34
Q

Object functional instantiation

A
35
Q

Objects functional instantiation with shared methods

A
36
Q

ParseInt ParseFloat

A

Parse strings into numbers

37
Q

while (true) ….

A
38
Q

For…..in
Iterate over object keys

A
39
Q

82 5 mins

A
40
Q

Default params

A

Function func(x, y = 1)

41
Q

Spread for function calls

A
42
Q

Spread in Array literals

A
43
Q

Spread Object literals

A
44
Q

Rest parameter

A
45
Q

Destructuring Arrays

A

-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
Q

Destructuring Objects

A

obj = {
fname: ‘hans’,
lname: ‘de feber’
}

const {fname, lname} = obj

const {fname: firstName, lname: lastName} = obj

47
Q
A
48
Q
A
49
Q
A