Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Яка різниця між res.send() та res.json()?
res.send()
res.json()
res.json() перетворює об'єкти на JSON
res.send() автоматично перетворює об'єкти на JSON
res.send() для відправки будь-якого типу даних, а res.json() для JSON
res.json() відправляє дані з налаштуванням заголовка Content-Type
Content-Type
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!