DevDiary



JavaScript Example 2

API (CRUD) Example

I recently discovered "https://getpantry.cloud/" a free API for developers who want to store some JSON data for their projects. I created an account/key, created some mock data (a list of movies) and looked through the documentation.

This examples details how to get data from the API and display it (CRUD).

It involves handling multiple asynchronous calls and ensuring that the data is presented in the correct order even though the responses are resolved in a non-deterministic order.

NOTE: Here is a link to the work - LINK



JavaScript Example 1

Event Listener and Promise

This page contains a number of buttons and when the user clicks on one it changes the text in a textbox and changes the displayed image.

The example involves using an event listener and an asynchronous function to get data from a JSON file.

jQuery is used as well for the fade out and fade in animations.

NOTE: Here is a link to the work - LINK