Code for analysing the financial records of a company.
In this challenge, I'll be using the concepts I've learned to complete the required activity. This activity presents a real-world situation in which my newfound JavaScript skills will come in handy. I am tasked with creating code for analyzing the financial records of a company.
I have been given a dataset composed of arrays with two fields, Date and Profit/Losses.
My task is to write JavaScript code that analyzes the records to calculate each of 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.
- I will need to track what the total change in profits are from month to month and then find the average.
- (
Total/Number of months
)
-
The greatest increase in profits (date and amount) over the entire period.
-
The greatest decrease in losses (date and amount) over the entire period.
When I open the code in the browser the resulting analysis should look similar to the following:
The URL of the deployed application: https://tamarajoniec.github.io/Console-Finances/
The final code should print the analysis to the console.
MIT Licence.