For our "Learn to Code with Project Shift Community" we're introducing a weekly coding challenge! Each Tuesday, we'll announce what the challenge is, and on the following Tuesday, we'll post a solution video, along with the names of the winners! If you're not on the email list, you can join here!
As you complete the challenges, you'll be eligible for awesome prizes!
Imagine you have a company and you're attempting to figure out how profitable your company was in 2019. Given the following data:
Write 2 functions.
One function will be called `maxProfitMonth` and should return the name of the month (i.e. January, February, etc.) that was the most profitable.
The other function will be called `profitLoss` and it should return what the overall profit/loss was for the entire year.
Note that the `date` property is a unix timestamp. Most months only have 1 piece of data, but some have more.
You may submit your challenge via this form: https://projectshift.typeform.com/to/kvgLGW
Note that the form allows you to submit the challenge in a variety of formats.
Next Tuesday (June 30), we will email you with solutions.