Node.js Networking Module #53 Flashcards

1
Q

Pop Quiz! How do you execute a file? Let’s say you have a bit of Node.js you want to run…How would you do that?

A

From the terminal, be sure you’re in the proper dirctory and then type the command:

node filename.js or in this case node server.js

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

How do you stop the server from running?

A

Stop it pressing the ctrl-C key combination

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

If you need to use Axios for your project, where should it be installed?

A

Your local project directory.

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

How can you test sending a POST request?

A

By using the Post Test Server,

https://ptsv2.com/ Bookmark it for later.

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

How can you clear up a messy terminal on Linux?

A

Ctrl-L

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