diff --git a/readme.md b/readme.md index ccca3f4..909cb75 100644 --- a/readme.md +++ b/readme.md @@ -38,7 +38,7 @@ $ npm -v * **Question:** What is the difference between forking and cloning a repository as opposed to just cloning a repository? -* **Your Answer:** +* **Your Answer:** Fork copies to your own repo in Git. Clone creating a local copy on your dev side. --- @@ -46,7 +46,7 @@ $ npm -v * **Question:** What does `npm init` do? How does the `-y` flag modify that command? -* **Your Answer:** +* **Your Answer:** npm init creates the structure of the project. -y is going to accept defaults, and use "yes". --- @@ -54,7 +54,7 @@ $ npm -v * **Question:** What is the purpose of the following keys? "name", "scripts", "license" -* **Your Answer:** +* **Your Answer:** name - project name. scripts - what is going to be called. license - licenses you have used in your project. --- @@ -62,7 +62,7 @@ $ npm -v * **Question:** What is the purpose of the `.gitignore` file? What is the significance of a "dot-file?" -* **Your Answer:** +* **Your Answer:** Files you do not want tracked by Git. --- @@ -70,7 +70,7 @@ $ npm -v * **Question:** From the command line, how can you run this file? -* **Your Answer:** +* **Your Answer:** npm index.js --- @@ -78,7 +78,7 @@ $ npm -v * **Question:** What happens and how is this related to what is in the `package.json` file? -* **Your Answer:** +* **Your Answer:** It looks in the package.json and executes what is defined in the test script. --- @@ -86,7 +86,7 @@ $ npm -v * **Question:** What will you enter on the command line to run that script? -* **Your Answer:** +* **Your Answer:** node index.js start --- @@ -94,7 +94,7 @@ $ npm -v * **Question:** The same pattern will not work to try and run this script. How can you successfully get this script to run? -* **Your Answer:** +* **Your Answer:** node index.js my-file --- @@ -111,11 +111,11 @@ $ npm -v * **Question:** What gets logged? Why? -* **Your Answer:** +* **Your Answer:** My name / age I added to the log portion of index.js. * **Question:** What is `module.exports` and what is its _type_ in JavaScript? What is `require` and what is its _type_ in JavaScript? -* **Your Answer:** +* **Your Answer:** module.exports is a special object that is exposed as a module. require is a built in function. --- @@ -123,7 +123,7 @@ $ npm -v * **Question:** What are some ways you can solve this problem? -* **Your Answer:** +* **Your Answer:** You can use an array to export more than one value. --- @@ -135,7 +135,7 @@ $ npm -v * **Question:** What is `path` and where does it come from? -* **Your Answer:** +* **Your Answer:** Path is a module we import and is installed by NPM. --- @@ -143,7 +143,7 @@ $ npm -v * **Question:** What command can you run to install this package? -* **Your Answer:** +* **Your Answer:** npm install package_name --- @@ -151,7 +151,7 @@ $ npm -v * **Question:** Do you need to use a `./` to require the package? Why or why not? -* **Your Answer:** +* **Your Answer:** ./ lets node know to look in the same realitive path it is running inside of. --- @@ -160,4 +160,4 @@ $ npm -v #### Resources - [Node.js Built-In Modules](https://nodejs.org/dist/latest-v12.x/docs/api/) -- [NPM: Moment](https://www.npmjs.com/package/moment) \ No newline at end of file +- [NPM: Moment](https://www.npmjs.com/package/moment)