Node js Flashcards

1
Q

What is node js?

A

Node js is a JavaScript run time environment that runs outside of a browser. It can run on a computer or server and is used to read, update delete files and communicate with Databases.

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

What is __dirname?

A

Returns the directory the executing file is in?

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

What is __filename?

A

Returns the file name of the app being executed?

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

What is setInterval?

A

Runs a function until clearInterval is called

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

What is setTimeout?

A

Takes in two arguments, a function to run and how many miliseconds to wait until it runs.

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