how to take a string and put each character in a new line javascript code example Example: javascript string return character var str = "HELLO WORLD"; var res = str.charAt(0);