Typing Trouble with a Faulty Keyboard
Your laptop keyboard has a glitch: whenever you type the letter 'i', it mysteriously reverses the string you're typing. Typing other characters works just fine.
Given a string s, you type each character of s using your faulty keyboard.
What will be the final string displayed on your laptop screen?
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)