Multiple choice technology web technology

To what value will the following expressions evaluate in the JavaScript console? "\u0061"

  1. a

  2. \u0061

  3. 0061

  4. "0061"

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

The unicode escape sequence \u0061 represents the Unicode code point for the lowercase letter 'a'. When JavaScript evaluates "\u0061", it interprets this escape sequence and returns the character 'a'. Option B shows the literal escape sequence (not interpreted), option C is just the hexadecimal digits, and option D is a quoted string of those digits.