easy5 pts · first answer countsfetch-apijavascript
What fetch does on a 404
The request below gets a 404 Not Found response. What happens?
fetch('/api/user')
.then((res) => res.json())
.catch(() => console.log('failed'))The request below gets a 404 Not Found response. What happens?
fetch('/api/user')
.then((res) => res.json())
.catch(() => console.log('failed'))