Hey guys, I'm currently going through simple practice problems on CodingBat and ran into a problem; the goal is to copy each character in a
string twice so that every /character is doubled. Here is the code:
So when I use the top piece of code, the result returns a string of numbers, rather than doubling each character, but the bottom piece of code works correctly. Can anyone explain to me why the top piece of code does this? Thank you