This repository holds the source file for a project that analyses the financial records of a company. I was provided with a dataset composed of an arrays with two fields, Date and Profit/Losses. My task was to write a JavaScript code that analyzes the records to calculate and print to console:
- The total number of months 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 profits over the entire period
- The greatest decrease in losses over the entire period
- HTML
- JavaScript
https://ladykays.github.io/console-finances/
https://www.elated.com/nested-arrays-in-javascript/
Please refer to the LICENCE in the repository