Node Flashcards

1
Q

npm -commands should always be run in the project r.._ directory

A

npm -commands should always be run in the project root directory

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

when we want to save something as a development dependency, we need to remember the –save-d._ flag

A

when we want to save something as a development dependency, we need to remember the –save-dev flag

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

you have already used nodemon, but ts-node has an alternative called ts-node-d._

A

you have already used nodemon, but ts-node has an alternative called ts-node-dev <-

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

All HTTP requests except POST should be id____tent

(This means that if a request does not generate side effects, then the result should be the same regardless of how many times the request is sent.)

A

All HTTP requests except POST should be idempotent:

Methods can also have the property of “idempotence” in that (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request. The methods GET, HEAD, PUT and DELETE share this property

This means that if a request does not generate side effects, then the result should be the same regardless of how many times the request is sent.

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