= input()
for i in inp:
print(i)
I want each letter of the word to be printed! I can do it in python with the code above, how about js?
const string = ..; for (const letter of string) { console.log(letter); } replacing input depends on whether the code runs in the browser or node
Обсуждают сегодня