Why my answer is 4000?

So i finished the activity on the current page, and I am wondering why my answer is 4000? Instead I multiplied monitorCount(rows, columns) by * 1 and I found out the original number is 20. Why is that?

We are using 5 as an argument for the rows parameter and 4 as the columns. costOfMonitors passes those arguments into the monitorCount helper function which multiplies the rows and columns (4 *5) which returns 20. 20 is the total number of monitors. The function costOfMonitors uses the 20 monitors that’s returned from monitorCount to multiply by 200 which is the cost of each monitor. That gives you a total of 4000 which would be the price for all of the monitors combined.

1 Like