Intro to Server side concerns with JavaScript

2021-8-16 About 1 min

# Intro to Server side concerns with JavaScript

1. What do the letters of the acronym CRUD stand for?

Create
Read
Update
Delete

1
2
3
4
5

2. Each action that CRUD represents maps to an HTTP request. What HTTP request does each CRUD action correspond to?

Create - post
Read - get
Update - put
Delete - delete

1
2
3
4
5

3. What does ORM stand for? Which ORM do we use when interacting with MongoDB

Object-relational mapping. we use Mongoose to interact with MongoDB.
1

4. Which two HTTP request types include a body?

Put and Delete
1

5. In a/an ___ coding model, when you call a function, it returns only when the action has finished and stops your program for the time the action takes. Likewise in a/an ___ coding model, multiple things are allowed to happen at one time. When you perform an action, your program continues to run. Fill in the blanks.

Async, Await
1

6. Fill in the missing piece of this snippet of code.

import ______ from "_______";
let Schema = ________.Schema;
1
2
import mongoose from "mongoose";
const Schema = mongoose.Schema;
1
2

7. What is middleware?

A function that will receive the Request and Response objects.
1

8. The __ pipeline delivers information from the client while the __ pipeline returns it. Fill in the blanks.

Deployment?
1

9. Demonstrate the pattern that is used to include a request query with the client's HTTP request providing the property tag and the value winter.

?tag=winter&holiday=christmas

1
2
Last update: September 19, 2021 13:38
Contributors: Derek Shain