Exam Flashcards

1
Q

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

The var statement

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Hoisting

A

When the execution phase begins, JavaScript knows what variables exist and where they are in scope. From the developer’s perspective, the code acts like the declarations were moved to the top of their respective scope. In particular, function-scoped declarations are moved to the function’s beginning, and block-scoped declarations are moved to the block’s start. We call this process hoisting.

The effect of hoisting is that all the declarations get hoisted – raised, lifted, moved – to the top of their defined scope. That’s why the following code works:

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Strict mode

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Closures, scope, and private data

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Partial function application

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

IIFEs

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Shorthand notation (understanding, not using)

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Modules (CommonJS)

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Exceptions

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Pure functions and side effects

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Asynchronous programming (setTimeout, setInterval)

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Testing terminology

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Jest

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

expect and matchers (toBe and toEqual especially)

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

SEAT approach

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

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Understanding code coverage

A
16
Q

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Writing tests

A
17
Q

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

Project directory layout

A
18
Q

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

what is transpilation

A
19
Q

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

npm and npx

A
20
Q

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

package.json and package-lock.json

A
21
Q

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

npm scripts

A
22
Q

Explain to someone who doesn’t know about (but knows everything up to knowing about it) with at least 1 example:

packaging projects

A