The goal was to use an API to create a single-page application (SPA). I was able to find an inexpensive jokes API on the web. I applied my knowledge from this course to construct working pages that reflected how the API worked. I ended up creating two pages. The first page included a picture and asked, “Do you want to hear a joke.” It also had a button labeled “What’s the joke” when prompted, it led to the second page. The second page displayed the joke from the API. The second page also had two buttons. The first button revealed the punchline, and the second button presented a new joke.
This project helped me to build on my previous knowledge from the In-class assignments. However, it was more hands-on. I had the freedom to chose the API. I was able to create a working SPA without step-by-step instruction. I was successful in implement the .getJSON function and jQuery methods (show and hide). This project helped to enhance my understanding of the Visual Studio Code.