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

Asynchronous Javascript #8

Open
eduv2-prod bot opened this issue Mar 20, 2023 · 0 comments
Open

Asynchronous Javascript #8

eduv2-prod bot opened this issue Mar 20, 2023 · 0 comments

Comments

@eduv2-prod
Copy link
Contributor

eduv2-prod bot commented Mar 20, 2023

Task Demonstrate the ability to build asynchronous Javascript applications
Conditions vscode Live Server running and serving an HTML webpage with Javascript
Standards Use Javascript to:
  • Create an HTML button that on click that uses a JS Promise to wait one second and then sends a fetch request to GET data from an external API
  • Once the request is sent show that the request is loading
  • If the request succeeds show the contents of the received data to the webpage
  • If the request fails show the error status code and message

Notes

  • You'll get a list of data by sending a Fetch (AJAX) GET request to https://swapi.dev/api/people/
  • If you're getting CORS errors ensure you're navigating to the web page served by vscode Live Server

References

robecampbelljr pushed a commit that referenced this issue May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants