‘\b’ is an escape character. it only modifies what you see on the terminal. so it works only on the console because it’s possible to make the cursor go back. it instruct the terminal/console to move the cursor backwards and place a space character at the new cursor position.
the output of above program is Byelo.