Node Flashcards

1
Q

What is the top level object provided by Node?

A

global

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

What are the four phases of the event loop

A

Timers
I/O callbacks
setImmediate
Close Callbacks

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

What class object is commonly used to implement the Observer pattern in Node

A

events

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

What module standard are we using for modules when we use require( ) and module.exports.

A

CommonJS

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

What module standard are we using for modules when we use “import from” and “export”.

A

ECMAScript

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

What object contains a global list of our modules?

A

require.cache

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

What kind of version number comes from Semantic Versioning

A

Major.Minor.Patch

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

In semantic versioning, when is the Major version changed?

A

When you make incompatible API changes

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

In semantic versioning, when is the Minor version changed?

A

When you add functionality in a backwards compatible maner

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

In semantic versioning, when is the Patch version changed?

A

Whey you make backwards compatible bug fixes

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

Recommended npm CSV package

A

csv-parse

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