0 votes
in JavaScript by
Which of the following givenfunctions of the Number Object formats a number with a different number of digits to the right of the decimal?

a) toExponential()

b) toFixed()

c) toPrecision()

d) toLocaleString()

1 Answer

0 votes
by

Answer: B

Reason: The "tofixed()" method formats the given number with a specific number of digits to the right of the decimal.

Related questions

0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma
0 votes
asked Oct 9, 2022 in JavaScript by Robin
...