Intro-to-Data-APIs-JS
Intro-to-Data-APIs-JS copied to clipboard
video 1.1 fetch() notes
Filing some notes in case I want to record an extra video to go in between 1.1 and 1.2.
- mentioning
try/catchas error handling option next step - pointing out that this is just to demo
fetch()of course just say<img src="rainbow.jpg"> - Noting that if you use
returningetData()it’ll come back in the promise asresponse.
Also noting from @joeyklee (and this came in via YouTube comments as well)
- Since fetch() returns a promise either way is fine, but maybe future examples could introduce the try/catch block?