Multiple choice

The _____________ JavaScript string function returns the encoded character at the position 'n', where 'n' is a positive integer.

  1. escape()

  2. string.charCode(n)

  3. string.concat(stringB)

  4. string.length

  5. string.replace

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

This JavaScript string function returns the encoded character at the position 'n', where 'n' is a positive integer.