javascript Flashcards

1
Q

what does strict mode do

A

promotes error detection

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

var

A

creates global variables

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

let

A

creates local variables

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

const

A

creates local immutable variables

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

immutable

A

cannot be changed once created

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

===

A

strict equality

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

what is the difference between strict comparison and regular comparison

A

strict will compare the values as well as the types

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

asynchronous programming

A

starts executing code then moves onto the next thing

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

synchronous programming

A

waits till the first set of code is executed before executing the next

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

callback

A

asynchronous programming; a function passed to another that will be executed sometime later
ensures that the program doesnt wait until another task has been completed

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

what does a lambda function look like

A

(parameters) => {implementation};

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

what is the symbol for a lambda function

A

=>

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

de-structuring

A

expanding an array or object to variables

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

what does it look like to de-structure an array

A

const variables = [ 1, 2, 3, 4 ];
[a,b, …rest] = variables;
a=1, b=2, rest = [3,4]

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