We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Fileserver Quiz

Let's go over some of the code that we used for our simple fileserver and make sure we understand the nuts and bolts.

Consider this code snippet and answer the questions:

const app = express();
const PORT = 8080;

app.use(express.static("."));

app.listen(PORT, () => {
  console.log(`Server is running at http://localhost:${PORT}`);
});