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