Hey folks! Can someone please explain to me why I can’t seem to use bracket notation to alter the first character of each item in an array? Everything works fine if if I try:
var a[i] = a[i].toUpperCase():
var a[i] = a[i].toUpperCase();
but as soon as I try to modify var a[i][x], it yells at me, saying it cannot read only property of ‘x’. Please help me understand why!
(Please note: I’m not asking for the answer to this challenge, if you recognize it. I’m simply wondering why I cannot use bracket notation in this way)