Kizspy | Question: 19
(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 server to serve JSON data.
B. Create a dynamic web application using JSON data.
C. Create a JSON file based on data from the server.
D. Configure the development environment for the project using JSON.