Flashcards

Node JS

1. Name two objects that are available in browser runtimes but not in NodeJS.

2. The “global object” in the Node runtime can be referenced with the name global. What name can be used in browser runtimes to reference the “global object”?

3. The ‘fs’ module contains synchronous and asynchronous versions of many of its methods. Why might one prefer to use the asynchronous versions of these methods?

4. What is the name of the node module that allows us to perform operations on our local file system?

5. What is the name of the node module that allows us to take user input?

6. What site should be used as a documentation reference for JavaScript in browser runtimes?

7. What site should be used as a documentation reference for JavaScript in the Node runtime?


Git Reset

1. git reset –hard

2. git reset –soft

3. git reset

4. git reset HEAD myfile.js