Search⌘ K
AI Features

Challenge: Letters and Words

Explore how to manipulate strings and handle user input in JavaScript. Learn to create a program that prompts for a name and returns the number of letters it contains, reinforcing skills with strings, prompts, and output formatting.

We'll cover the following...

Task

Write a program that uses a prompt box to ask for a user’s name and then tells the user how many letters their name contains.

Sample input ...