Multiple choice technology enterprise content management

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

  1. 6

  2. 62

  3. 110

  4. 26

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

The toString(2) method converts a number to its string representation in binary (base 2). The binary representation of the decimal number 6 is 110.