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.
2
Q
What is __dirname?
A
Returns the directory the executing file is in?
3
Q
What is __filename?
A
Returns the file name of the app being executed?
4
Q
What is setInterval?
A
Runs a function until clearInterval is called
5
Q
What is setTimeout?
A
Takes in two arguments, a function to run and how many miliseconds to wait until it runs.