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
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?