posted 6 years ago
Hey guys, i have this assignment from my school, and ive tried to solve it for hours now.. Im able to fetch the Json, but when i try and print the names i get undefined every time.
Don't know why, since IMO, ive declared the variables im trying to extract.
Best Regards.
Assignment
Execution in serial
Use fetch and async/await to complete fetchPerson(..)below. When implemented, each line in printNames() must be executed “sequentially”. Verify this with the debugger.
What i have so far