I'm new to javascript so don't judge me please :)
I have a real basic string generator, but it isn't working the way I want it to, it prints a 1 letter string (e.g "c") rather than a multi-letter string
var alphabet = "abcdefghijklmnopqrstuvwxyz"
for (var i=0;i<alphabet.length;i++) {
var news = "";
news = news + alphabet[Math.floor(Math.random() * alphabet.length)]
if (i == alphabet.length - 1) {
console.log(news)
}
}