$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #199

What is the output?

console.log('abc'.toUpperCase().charAt(1));
  1. B
  2. b
  3. A
  4. C
The string becomes ABC and index 1 is the second character.
Play Problem Solving ▸