You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a Scrimba video lesson (this part), there's an assignment to fetch cat data using the Fetch API, with the instruction to "Make sure to convert that data to JSON data" and "Build a callback function to accept the JSON data". However, this wording is misleading, as the .json() method actually parses JSON data into a JavaScript object, rather than converting it into JSON format. We can also see that file source that needs to be fetched for the assignment has .json format.
Checks
Describe your suggestion
In a Scrimba video lesson (this part), there's an assignment to fetch cat data using the Fetch API, with the instruction to "Make sure to convert that data to JSON data" and "Build a callback function to accept the JSON data". However, this wording is misleading, as the .json() method actually parses JSON data into a JavaScript object, rather than converting it into JSON format. We can also see that file source that needs to be fetched for the assignment has .json format.
According to the MDN documentation: "Note that despite the method being named json(), the result is not JSON but is instead the result of taking JSON as input and parsing it to produce a JavaScript object."
Sidenote: not really sure how hard it is to modify scrimba video comments on that video, but wanted to point out the inconsistency just in case.
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/node-path-javascript-asynchronous-code
(Optional) Discord Name
No response
(Optional) Additional Comments
No response
The text was updated successfully, but these errors were encountered: