Complete the code to import the Express framework.
const express = require('[1]');
The Express framework is imported using require('express').
Complete the code to serve static files from the 'public' folder.
app.use(express.static('[1]'));
express.static middleware.The express.static middleware serves files from the folder named 'public'.
Fix the error in the code to correctly serve static files using Express.
app.use([1].static('public'));
The express.static middleware is used to serve static files, so express must be used here.
Fill both blanks to create an Express app that serves static files from 'assets' folder and listens on port 3000.
const app = [1](); app.use([2].static('assets'));
You create an Express app by calling express() and use express.static to serve static files.
Fill all three blanks to complete the Express server that serves static files from 'static' folder and listens on port 8080.
const app = [1](); app.use([2].static('[3]')); app.listen(8080);
The Express app is created by calling express(), static files are served from the 'static' folder using express.static, and the server listens on port 8080.