main.js
1
2
3
4
5
6
7
8
9
10
11
12
// This program will take the name you input and spell it and as well as tell you how many letters are in your name.

let name = prompt("Please enter your name")

console.log("This is how to spell your name:")

for (var i = 0; i < name.length; i++) {
  console.log((name.charAt(i)));
}

console.log(`"You have ${name.length} letters in your name"`)
Native Browser JavaScript