1. Name two objects that are available in browser runtimes but not in NodeJS.
window
, document
, and location
.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”?
window
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?
1. git reset –hard
Discards all code changes after
DANGEROUS! Use with caution.
2. git reset –soft
3. git reset
Same as git reset --mixed <commit hash>
Moves HEAD ref to
Changes moved to working directory; must be re-git add
ed.
4. git reset HEAD myfile.js