R202_-_FA_2024_-_FE_2975.webp
TuanKiet1

R202_-_FA_2024_-_FE_2975.webp

Kizspy | Question: 21
(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.
FUOVERFL

Thông tin

Category
FER202
Thêm bởi
TuanKiet1
Ngày thêm
Lượt xem
3,765
Lượt bình luận
16
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom