Then()
The return keyword is used to define values in data and prevent errors from occurring.
fetch('/api') .then((response) => return response.json()) .then((data) => console.log(data));
Happy Coding :)