Assignment 4 of the Front-End Web Dev bootcamp to analyze financial records of a company
This is a mini application built in JavaScript to analyze financial records of a company.
Financial Calculator · GitHub repo ·Table of Contents
The goal of this project is practice basic JavaScript skills by building a financial console to analyze financial records of a company.
The application should calculate the following:
- The total number of months included in the dataset.
- The net total amount of Profit/Losses over the entire period.
- The average of the **changes** in Profit/Losses over the entire period.
- The greatest increase in Profit/Losses (date and amount) over the entire period.
- The greatest decrease in Profit/Losses (date and amount) over the entire period.
- The final code should print the analysis to the console.
The resulting analysis should look similar to the following:
I used the following technologies when building this application:
Overall the process was very enjoyable. Taking those couple of weeks of CS50x finally paid off as I was very comfortable with the logic. I still had to look up a couple of things (such as how to create an array from a array, or how to calculate min, max, average in JavaScript).
I also went an extra mile and used Intl.NumberFormat('en-US').format()
to present the numbers in a more readable format.
The project is now live.
The deployed page looks like this:
You can find the financial calculator app and its corresponding code here:
Attribution
- Free financial Calculator Icon from Freepixel.