FrontendInterviews.dev

652. toFixed Rounding Surprise

Easy•

Predict the output.

console.log((1.005).toFixed(2))

What is printed in the console?

Select an option and submit your answer.
Next Problem