Asynchronous Code: Incorrect assignment message in lesson description in scrimba video lesson #27852
Open
2 of 3 tasks
Labels
Status: Stale
This issue/PR has been inactive for over 30 days and will be closed if inactivity continues
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: