Multiple choice technology web technology

HTML: javascript: alert(parseInt(name.value)); What is The Output When The User Enters 99 in the text field ?

  1. 0

  2. 9

  3. 99

  4. Error On Page

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

parseInt() without a radix interprets the string '99' as a standard decimal number and returns 99. The leading zero rule doesn't apply here since the string doesn't start with 0.