Question: Hi I gave in a coding task but it needs some fixing. Here's the fixes that need to be added: (Gave by one of our

Hi I gave in a coding task but it needs some fixing.

Here's the fixes that need to be added: (Gave by one of our lecturers), please fix this for me.

you should ask the user add another entry, ask for the income name, amount, if its recurring then create that object and add it to a income array. Then ask them to input a expense, ask for the expense name, amount, if its recurring then create that object and add it to a expenses array (you can then loop over these arrays to get the totals). After that, show the Income minus the expenses. Then ask the user how much they want to save and display the total. Please don't use var, rather use let or const to declare a variable.

Here's the code:

Hi I gave in a coding task but it needs some fixing.

Here's the fixes that need to be added: (Gave by one ofour lecturers), please fix this for me. you should ask the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!