Is there a non backwards way to turn exactly one array index into an uppercase string? I don't want to split, loop or anything else, because I only need this one string.
colors = [ "red", "green", "blue" ];
red = colors[0];
redUpper = red.toUppercase();
This won't work, because toUppercase()
is a string function. I know that. I'm only looking for the simplest way to achieve this.