Ad
  • Custom User Avatar

    One question. On the line where you wrote (reversedWord = str[i] + reversedWord;), I understand that when you do reversedWord = str[i], it will assign the individual letters of the str into reversedWord. But why is it that when you + reversedWord to str[i], it reverses the character?