Complete the code to import the Express middleware package.
const express = require('[1]');
The Express middleware package is imported using require('express').
Complete the code to use the middleware function in the Express app.
app.[1](middlewareFunction);Use app.use() to apply middleware functions in Express.
Fix the error in the middleware function signature.
function middleware(req, [1], next) { console.log('Middleware running'); next(); }
The middleware function parameters are req, res, and next.
Fill both blanks to import and use the 'cors' middleware in Express.
const [1] = require('cors'); app.[2]([1]());
Import 'cors' with require('cors') and use it with app.use(cors()).
Fill all three blanks to import, configure, and use the 'helmet' middleware with options.
const [1] = require('helmet'); const helmetOptions = { contentSecurityPolicy: false }; app.[2]([1]([3]));
Import 'helmet', then use app.use(helmet(helmetOptions)) to apply it with options.
