Week 7 Reading Review Flashcards

Review key points of week 7 reading

1
Q

Node is built on the __________________

A

Chrome JavaScript V8 engine

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

Applications are designed as a set of small focused ___________

A

modules

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

Method to load a module

A

require()

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

Object used to export pieces of code from a modules

A

module.exports

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

In node a folder containing an application is called a ____________

A

package

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

File used to describe what is in a package

A

package.json

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

Format of node package versioning

A

major.minor.patch

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

Node’s package manager

A

npm

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

Node’s package runner

A

npx

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

Command to install all dependencies in the package.json file

A

npm install

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

command to update all packages in the package.json file

A

npm update

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

Installed packages defined as dependencies are stored in the _______________ subfolder.

A

node_modules/

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

What is the parameter passed in the require() function

A

the module you want to load

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

If you want to allow patch level changes in your requires modules in the package.json file you use a ___ before the version number

A

~

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

If you want to allow everything but major version changes in your requires modules in the package.json file you use a ___ before the version number

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

Two ways to add dependencies to a package

A
  1. Update the package.json file and run npm update

2. Run npm install package id

17
Q

A standard way to design and structure an application

A

framework

18
Q

A framework used to build a node web server

A

Express

19
Q

Entry point associated with URLs are ________

A

routes

20
Q

3 main express methods

A

get(), post(), middleware()

21
Q

Two packages that handle JSON data

A

multer and body-parser