I was tried to convert a string to float and I was tried toFixed but can't. How can I fix that problem? please Help me!!!
`
const str = "1.00"
const num = parseFloat(str).toFixed(2);
console.log(typeof num);
output: string
I was tried to convert a string to float and I was tried toFixed but can't. How can I fix that problem? please Help me!!!
`
const str = "1.00"
const num = parseFloat(str).toFixed(2);
console.log(typeof num);
output: string