Direction: Choose the correct option
Q1.
What does express.json() middleware do?
Direction: Choose the correct option
Q2.
What is the purpose of express.urlencoded({ extended: true })?
Direction: Choose the correct option
Q3.
What is the difference between extended: true and extended: false in express.urlencoded()?
Direction: Choose the correct option
Q4.
Which built-in middleware is used to serve static files like CSS and images?
Direction: Choose the correct option
Q5.
How do you use express.static to serve files from a 'public' folder?
