Exercise 9 · Chapter: Input & Type ConversionOptional+50 XP
Fix the Prompt
This program should ask the user for their name, but the question is being printed as output. Fix it!
Example input: Alex
Expected output: Hello, Alex!
Need a hint?
3 available · costs 5 XP each
javascript
console.log("What is your name?");
let name = prompt();
console.log(`Hello, ${name}!`);
Output
Run your code to see the output here.