Multiple choice technology enterprise content management

var n = new Number(6); var nVal = n.toString(8) The Values for nVal will be:

  1. 6

  2. 68

  3. 110

  4. 86

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

The toString(8) method converts a number to its octal (base 8) representation. Since 6 is less than 8, its octal representation remains 6.