Q:

Write a JavaScript program to convert a float-point arithmetic to the Decimal mark form and It will make a comma separated string from a number

0

Write a JavaScript program to convert a float-point arithmetic to the Decimal mark form and It will make a comma separated string from a number.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

const toDecimalMark = num => num.toLocaleString('en-US');
console.log(toDecimalMark(12305030388.9087));
console.log(toDecimalMark(123.2264))
console.log(toDecimalMark(-100.10))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now