Express JS Flashcards

1
Q

What is Express JS?

A

A Node.js framework designed for building APIs, web applications, and cross-platform mobile apps.

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

routing

A

Refers to how an application responds to client requests to a particular endpoint, which is a URI (or path) and a specific HTTP request method.

https://expressjs.com/en/starter/basic-routing.html

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

route parameters

A

A placeholder where a user provides the data. We use request and params to access the data and build logic.

Example: http://localhost:5000/api/data/:productID

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

get query strings and parameters

A

example: test.com/query?name=jim&id=5

link: https://stackabuse.com/get-query-strings-and-parameters-in-express-js/

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

middleware

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

app.get(“/”, (req, res) => {res.send(“<h1>test</h1>”)})

A

listens for a get request to the homepage (“/”) and sends a response.

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

app.use()

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

app.use(express.static())

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