Q. What is the purpose of res.json()?

A
Sends HTML
B
Sends JSON response
C
Redirects a request
D
Mounts middleware
Solution:

res.json() sends a JSON response to the client.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!