(Choose 1 answer)
const jsonServer = require('json-server');const server = jsonServer.create():
const router = jsonServer.router('data.json');
const port = 3000;
server.use(router):
server.listen(port. () => {
console.log('JSON server is running on port ${port}');}):
What is the above code used for?
A. Create a dynamic web application using JSON data.
B. Create a dynamic server to serve JSON data.
C. Configure the development environment for the project using JSON.
D. Create a JSON file based on data from the server.
Q: 37