I have following string array
let example = ["hello", "what"];
I want to convert this array's to this:
["Hello", "what"];
To accomplish that I have following code:
example[0][0] = example[0][0].toUpperCase();
When I try to console.log(example), I get
["hello", "what"]
What's wrong here? How can I convert first element's first letter to upper case?
example[0].