Multiple choice technology enterprise content management

var n = new Number(6.75367625263); var nVal = n.toFixed(3); What is the value of nVal

  1. 0.754

  2. 6.754

  3. 0.753

  4. 6.753

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The toFixed(3) method formats a number using fixed-point notation, rounding to 3 decimal places. Rounding 6.7536... to three decimal places yields 6.754.