-4
I am new to programming and would like someone to help me, please. I need to sort the letters one word per line
var n=require("readline-sync")
var b1
var b2
b2=n.question("Digite uma palavra")
b1=b2.split("")
console.log(b1)
Basically my code is like this, but I need each letter of the word to be on a different line, someone can help me?
It is not necessary to use the
\n
in this case because theconsole.log
already makes line break at the end.– JeanExtreme002
Really not necessary, thanks for the tip
– Gabriel José de Oliveira