Vets-Who-Code / js-web-path-mountainmort

MIT License
3 stars 0 forks source link

Asynchronous Javascript #8

Closed eduv2-local[bot] closed 1 year ago

eduv2-local[bot] commented 1 year ago
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

References

mountainmort commented 1 year ago

Completed in: https://github.com/Vets-Who-Code/js-web-path-mountainmort/pull/17