Node ?'s Flashcards

1
Q

What is Node.js

A

Allows JS to run outside of browser/server

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

What is it used for?

A

builds back-ends for web applications

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

What is the process object in Node.js?

A

global object that provides info about current node.js processes

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

How do you access the process object in Node.js?

A

console.log(process)

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

What is the data type of process.argv in Node?

A

array

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

What is a JS module?

A

any single ‘.js’ file

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

What values are passed into a Node.js module’s local scope?

A

top level variables (const, let)

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

Give to examples of truly global variables in a Node.js program?

A

__dirname (directory name), __filename (file name)

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