I have an array of strings,
["item1", "item2"]
I’d like to change my array to
["showItem1", "showItem2"]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The most easy to understand way of doing exactly what you ask for is probably something like this:
Explanation: build a new string consisting of the string “show” + the first character converted to uppercase + the remainder of the string (everything after the first character, which has index 0)