← ⚡ JavaScript World
⚡ Echo Echo Echo
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
- Make an empty array, push the word in a loop, then .join(" ")
- Or: Array(times).fill(word).join(" ")
🧪 Coach checks
- ◯ ha x3
- ◯ once is once
- ◯ five echoes
Live coach
Getting ready
☆☆☆
💬 Build an array in a loop, then join() glues it into one string.
function threeCheers() {
const parts = [];
for (let i = 0; i < 3; i++) {
parts.push("hip hip hooray");
}
return parts.join(", ");
}
console.log(threeCheers());
// hip hip hooray, hip hip hooray, hip hip hooray
📟 It printed:
Nice — you saw it work!
📟 Output
🧩 Gaps filled! Ready to write it all yourself?