Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video 1.1 fetch() notes #29

Open
shiffman opened this issue May 13, 2019 · 1 comment
Open

video 1.1 fetch() notes #29

shiffman opened this issue May 13, 2019 · 1 comment

Comments

@shiffman
Copy link
Member

Filing some notes in case I want to record an extra video to go in between 1.1 and 1.2.

  • mentioning try/catch as 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 return in getData() it’ll come back in the promise as response.
@shiffman
Copy link
Member Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant