Inspiration
The Doomsday Clock from World War II served as an inspiration to our creation.
What it does
It shows how close the country is to an economic fallout.
How we built it
We coded an HTML website and added APIs where we calculated the relative CPIs and compared their ranges to determine the time range from 9 to 12
Challenges we ran into
A challenge we ran into was the variable declaration in our JavaScript functions causing our code to break countless times with errors that didn't point us in the right direction. We also had issues with asynchronous functions for the API call where we had to figure out how to wait for the object promise through using the "then" statement. Finding the economic data was also an issue as a lot of the data bank websites did not have the information we required about inflation rates, while some were also outdated.
Accomplishments that we're proud of
We are proud that we ended up getting the numbers to show up on our clock through the click of each country's button. We are also proud of getting these functions to work and provide a successful project. We worked with languages that we were unfamiliar with and made good progress regarding our idea.
What we learned
We learned asynchronous functions are background functions that post a promise (once it is done, it doesn't execute in order of operations unless a then statement is present).
What's next for Doomsday Clock
An updated calculation for the countries and the values would be more open to a wider range of values before a predicted economic doomsday.
Log in or sign up for Devpost to join the conversation.