Exact Change Advance Algorithm help

Hi I am stuck for idea on how to turn value like 0.5 to 0.50, I have tried to use toFixed(2) so the value is 2 decimal places but when I input that into the 2D array it becomes a string like this: [“QUARTER”,“0.50”], I have also tried to use parseFloat but the result is still a string. Thank you in advance.

Don’t worry about the trailing zeroes. If the numbers are the same, then the test will pass.

1 Like