← ⚡ JavaScript World
⚡ Say Hello
You can practise without a player, but pick a player to score points!
📖 The mission
Today you unlock
Text can be built from pieces
String levels are about joining words, numbers, and punctuation in the exact order the mission asks for.
💡 Hint ladder
- You can glue text together with +, like "Hello, " + name.
- Don't forget the ! at the end.
🧪 Coach checks
- ◯ greets Sam
- ◯ greets Alex
- ◯ greets a long name
Live coach
Getting ready
☆☆☆
💬 This function builds a goodbye message by gluing text together with +. Run it!
function sayBye(name) {
return "Bye bye, " + name + "!";
}
console.log(sayBye("Sam")); // Bye bye, Sam!
console.log(sayBye("Alex")); // Bye bye, Alex!
📟 It printed:
Nice — you saw it work!
📟 Output
🧩 Gaps filled! Ready to write it all yourself?