SyntaxFix
Write A Post
Hire A Developer
Questions
ES6 is quite powerful in iterating through objects (strings, Array, Map, Set). Let's use a Spread Operator to solve this.
entry = prompt("Enter your name"); var count = [...entry]; console.log(count);