NEW
Font size
WorksheetsAY25S2 BED Diagnostic: npm + HTTP Routes
Total questions: 10
Worksheet time: 3mins
What is the file that lists dependencies and custom commands?
package-lock.json
node_modules
index.js
package.json
Which npm command is used to download a package?
npm run
npm init
npm start
npm install
Which npm command is used to execute a custom script named 'xxx' defined in your package.json?
npm xxx
Which npm command is used to remove a package from your project?
Which HTTP method is used to retrieve information only?
Which HTTP method should be used to create a NEW user?
If you want to remove a blog post, which HTTP method should you use?
What is the Express.js syntax for a GET request to the root path (/)?
app.run(...)
app.get('/', (req, res) => { })
app.post('/', (req, res)=>{ })
app.listen('/', ...)
Which Express method handles a POST request to /products?
app.get('/products',
(req, res)=>{...})
app.post('/products', (req, res)=>{...})
app.put('/products',
(req, res)=>{...})
app.delete('/products', ()=>{...})
What does Unit 3 (this week's content) teach?
HTTP Methods + Middleware
Integration with Database
Integration with Frontend
I don't know
