Assessment wanted for Math2 skill test-haydee

task page

my work

let result = (7 + 13) / (9 + 7);
let result2 = 100 / (2 * 6);
result *=result2;
let finalResult=Math.floor(result * 100) / 100
typeof finalResult;
let finalNumber=Number(finalResult);

maybe there is something wrong with the starting point html, so I have to paste my code :cold_sweat:

btw, is 10.41 ok?

Great job, @Austin_Hart! :clap:

Just one thing. There’s a better option to format the number. This will also correctly round the number and not just “cut” it. The correct value is 10.42.

I don’t understand what you mean. When I copy the starting point to CodePen and paste your code into it, it works. Could you explain what doesn’t work?

Happy coding,
Michael

wow, that tofixed method is so cool :smile:

2 Likes