I\'m trying to convert a character in an array to uppercase using .toUpperCase(), but it doesn\'t work. I\'m pretty sure my logic is correct, so not sure why it\'s not working?<
console.log(tempArr[i]); //this will display "i" and "p".. why?
because you were not storing the converted value back to the variable
make it
tempArr[i] = tempArr[i].toUpperCase();