I do not have any questions but I must say that I learned quite a lot with this project.
A couple of things I learned are
- How to work with ES6 classes and modules
- How to work with a zero configuration build tool such as Parcel
- How to implement the MVC (model-view-controller) architecture in JavaScript
- How to implement the Publisher-Subscriber pattern
- How to write documentation for functions
- How to implement a project configuration file and use it throughout the project
Another thing I created as well is a flowchart. This is something I learned from a previous course I followed on Udemy (so I decided to create one on my own this time).
Feedback on the implementation of the MVC architecture as the error handling is welcome.
----------
As a sidenote: as soon as the user presses the button, the button disables for 2 seconds. The API returns the same advice within that time period and this might confuse the user if the user presses the button again.