Why does this JavaScript toFixed return string?

Why does this JavaScript toFixed return string in a sum. The JavaScript code uses toFixed for display and then adds the result. In JavaScript toFixed returns a string so addition concatenates.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javasc...

https://www.youtube.com/watch?v=x0GQuQEY6Yw

Why does this JavaScript toFixed return string? #javascriptperformance

YouTube

state of the browser has free diversity tickets if anyone needs them https://2026.stateofthebrowser.com/tickets/#diversity-tickets

edit to add tags #webdev #html #css #javasc

Tickets | State of the Browser

More information and buying options for tickets.

o/url/290054 ttps://lobste.rs/s/qbu40g #javasc.. To be honest, it seems to be angelic!20 minutes into stand life. Like, "OBJECTIVE: Take a shower. BONUS