diff --git a/curriculum/challenges/_meta/learn-basic-javascript-by-building-a-role-playing-game/meta.json b/curriculum/challenges/_meta/learn-basic-javascript-by-building-a-role-playing-game/meta.json index a239f774859..f91576d745f 100644 --- a/curriculum/challenges/_meta/learn-basic-javascript-by-building-a-role-playing-game/meta.json +++ b/curriculum/challenges/_meta/learn-basic-javascript-by-building-a-role-playing-game/meta.json @@ -565,148 +565,152 @@ "title": "Step 138" }, { - "id": "62a8f35bde1750791f58773f", + "id": "65b2f6acce65b7a69751a090", "title": "Step 139" }, { - "id": "62a94114ce0b8918b487390f", + "id": "62a8f35bde1750791f58773f", "title": "Step 140" }, { - "id": "62aa1cea594f152ba626b872", + "id": "62a94114ce0b8918b487390f", "title": "Step 141" }, { - "id": "62aa1d6736ba262cfa74344b", + "id": "62aa1cea594f152ba626b872", "title": "Step 142" }, { - "id": "62aa1d9f535e102e4663e7a6", + "id": "62aa1d6736ba262cfa74344b", "title": "Step 143" }, { - "id": "62aa1e3c7c3d552fb04f0f18", + "id": "62aa1d9f535e102e4663e7a6", "title": "Step 144" }, { - "id": "62aa1e8ccd579330e097ce44", + "id": "62aa1e3c7c3d552fb04f0f18", "title": "Step 145" }, { - "id": "62aa1eec891ed731db227a36", + "id": "62aa1e8ccd579330e097ce44", "title": "Step 146" }, { - "id": "62aa1fed3d4e873366ff3131", + "id": "62aa1eec891ed731db227a36", "title": "Step 147" }, { - "id": "62aa204c1e1d33348ff09944", + "id": "62aa1fed3d4e873366ff3131", "title": "Step 148" }, { - "id": "62aa20e9cf1be9358f5aceae", + "id": "62aa204c1e1d33348ff09944", "title": "Step 149" }, { - "id": "62aa2136fc49b836dfedb959", + "id": "62aa20e9cf1be9358f5aceae", "title": "Step 150" }, { - "id": "62aa21971e3b743844849985", + "id": "62aa2136fc49b836dfedb959", "title": "Step 151" }, { - "id": "62aa21ea8d9d9f396b95dd87", + "id": "62aa21971e3b743844849985", "title": "Step 152" }, { - "id": "62aa226207f33d3ad4c6f546", + "id": "62aa21ea8d9d9f396b95dd87", "title": "Step 153" }, { - "id": "62aa22aba186563bcbf2c395", + "id": "62aa226207f33d3ad4c6f546", "title": "Step 154" }, { - "id": "62aa234322d4ad3e8bce42cc", + "id": "62aa22aba186563bcbf2c395", "title": "Step 155" }, { - "id": "62aa2469c77b363fdb4f0e06", + "id": "62aa234322d4ad3e8bce42cc", "title": "Step 156" }, { - "id": "62aa252c3b1073415ba2b898", + "id": "62aa2469c77b363fdb4f0e06", "title": "Step 157" }, { - "id": "62aa258da314ef42ba0a1858", + "id": "62aa252c3b1073415ba2b898", "title": "Step 158" }, { - "id": "62aa25fcb5837d43b4d9873d", + "id": "62aa258da314ef42ba0a1858", "title": "Step 159" }, { - "id": "62aa2626c3c10244b94c787b", + "id": "62aa25fcb5837d43b4d9873d", "title": "Step 160" }, { - "id": "62aa264d23cdaa45a20efada", + "id": "62aa2626c3c10244b94c787b", "title": "Step 161" }, { - "id": "62aa26cca3cd3d46c431e73b", + "id": "62aa264d23cdaa45a20efada", "title": "Step 162" }, { - "id": "62aa27227399d647e1c37a3c", + "id": "62aa26cca3cd3d46c431e73b", "title": "Step 163" }, { - "id": "62aa27560def7048d7b4a095", + "id": "62aa27227399d647e1c37a3c", "title": "Step 164" }, { - "id": "62aa27c40ca6f04ab8be5fac", + "id": "62aa27560def7048d7b4a095", "title": "Step 165" }, { - "id": "62aa28032d863d4bd8058799", + "id": "62aa27c40ca6f04ab8be5fac", "title": "Step 166" }, { - "id": "62aa287434dc284cea01157c", + "id": "62aa28032d863d4bd8058799", "title": "Step 167" }, { - "id": "62aa28bbd6323e4dfb3ac43e", + "id": "62aa287434dc284cea01157c", "title": "Step 168" }, { - "id": "62aa28fb651bf14efa2dbb16", + "id": "62aa28bbd6323e4dfb3ac43e", "title": "Step 169" }, { - "id": "62aa2943669c9d5026af6985", + "id": "62aa28fb651bf14efa2dbb16", "title": "Step 170" }, { - "id": "62aa2999ec27ec516655eba6", + "id": "62aa2943669c9d5026af6985", "title": "Step 171" }, { - "id": "62aa29d8f8f88152c91350ca", + "id": "62aa2999ec27ec516655eba6", "title": "Step 172" }, { - "id": "62aa2aec2f09d454253aad6c", + "id": "62aa29d8f8f88152c91350ca", "title": "Step 173" }, { - "id": "62aa2ba9cd881355a6f0a5a8", + "id": "62aa2aec2f09d454253aad6c", "title": "Step 174" + }, + { + "id": "62aa2ba9cd881355a6f0a5a8", + "title": "Step 175" } ] } \ No newline at end of file diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f256b813a476cae51f49.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f256b813a476cae51f49.md index 35c1b321145..34403165cae 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f256b813a476cae51f49.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f256b813a476cae51f49.md @@ -220,7 +220,7 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" } ]; diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f35bde1750791f58773f.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f35bde1750791f58773f.md index 4c2ee746563..756899ded11 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f35bde1750791f58773f.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f35bde1750791f58773f.md @@ -1,8 +1,8 @@ --- id: 62a8f35bde1750791f58773f -title: Step 139 +title: Step 140 challengeType: 0 -dashedName: step-139 +dashedName: step-140 --- # --description-- @@ -185,7 +185,7 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" } ]; @@ -202,7 +202,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a94114ce0b8918b487390f.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a94114ce0b8918b487390f.md index b70c74ede29..0a0940d349f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a94114ce0b8918b487390f.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a94114ce0b8918b487390f.md @@ -1,13 +1,13 @@ --- id: 62a94114ce0b8918b487390f -title: Step 140 +title: Step 141 challengeType: 0 -dashedName: step-140 +dashedName: step-141 --- # --description-- -Add another object in the `locations` array. Everything should be the same as the `lose` object, except the `name` should be `win` and the `text` should be `You defeat the dragon! YOU WIN THE GAME! 🎉`. +Add another object in the `locations` array. Everything should be the same as the `lose` object, except the `name` should be `win` and the `text` should be `You defeat the dragon! YOU WIN THE GAME! 🎉`. # --hints-- @@ -41,10 +41,10 @@ Your seventh `locations` value should have a `button functions` array with three assert.deepEqual(locations[6]["button functions"], [restart, restart, restart]); ``` -Your seventh `locations` value should have a `text` property with the value `You defeat the dragon! YOU WIN THE GAME! 🎉`. +Your seventh `locations` value should have a `text` property with the value `You defeat the dragon! YOU WIN THE GAME! 🎉`. ```js -assert.equal(locations[6].text, 'You defeat the dragon! YOU WIN THE GAME! 🎉'); +assert.equal(locations[6].text, 'You defeat the dragon! YOU WIN THE GAME! 🎉'); ``` # --seed-- @@ -210,7 +210,7 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" } --fcc-editable-region-- ]; @@ -228,7 +228,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1cea594f152ba626b872.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1cea594f152ba626b872.md index a122175b2bc..c60a310609f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1cea594f152ba626b872.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1cea594f152ba626b872.md @@ -1,8 +1,8 @@ --- id: 62aa1cea594f152ba626b872 -title: Step 141 +title: Step 142 challengeType: 0 -dashedName: step-141 +dashedName: step-142 --- # --description-- @@ -181,13 +181,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -204,7 +204,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d6736ba262cfa74344b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d6736ba262cfa74344b.md index 73b31c2143e..1cea04cd6f6 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d6736ba262cfa74344b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d6736ba262cfa74344b.md @@ -1,8 +1,8 @@ --- id: 62aa1d6736ba262cfa74344b -title: Step 142 +title: Step 143 challengeType: 0 -dashedName: step-142 +dashedName: step-143 --- # --description-- @@ -185,13 +185,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -208,7 +208,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d9f535e102e4663e7a6.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d9f535e102e4663e7a6.md index a0adfe98005..8481e6b860c 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d9f535e102e4663e7a6.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d9f535e102e4663e7a6.md @@ -1,8 +1,8 @@ --- id: 62aa1d9f535e102e4663e7a6 -title: Step 143 +title: Step 144 challengeType: 0 -dashedName: step-143 +dashedName: step-144 --- # --description-- @@ -193,13 +193,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -216,7 +216,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e3c7c3d552fb04f0f18.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e3c7c3d552fb04f0f18.md index 42231b65d84..83c5a242498 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e3c7c3d552fb04f0f18.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e3c7c3d552fb04f0f18.md @@ -1,8 +1,8 @@ --- id: 62aa1e3c7c3d552fb04f0f18 -title: Step 144 +title: Step 145 challengeType: 0 -dashedName: step-144 +dashedName: step-145 --- # --description-- @@ -179,13 +179,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -202,7 +202,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e8ccd579330e097ce44.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e8ccd579330e097ce44.md index 095532194d9..470d350b199 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e8ccd579330e097ce44.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e8ccd579330e097ce44.md @@ -1,8 +1,8 @@ --- id: 62aa1e8ccd579330e097ce44 -title: Step 145 +title: Step 146 challengeType: 0 -dashedName: step-145 +dashedName: step-146 --- # --description-- @@ -188,13 +188,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -211,7 +211,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1eec891ed731db227a36.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1eec891ed731db227a36.md index df43e068822..5921fd35e95 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1eec891ed731db227a36.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1eec891ed731db227a36.md @@ -1,8 +1,8 @@ --- id: 62aa1eec891ed731db227a36 -title: Step 146 +title: Step 147 challengeType: 0 -dashedName: step-146 +dashedName: step-147 --- # --description-- @@ -207,13 +207,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -230,7 +230,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1fed3d4e873366ff3131.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1fed3d4e873366ff3131.md index 86b76032640..73ba72a5e93 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1fed3d4e873366ff3131.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1fed3d4e873366ff3131.md @@ -1,8 +1,8 @@ --- id: 62aa1fed3d4e873366ff3131 -title: Step 147 +title: Step 148 challengeType: 0 -dashedName: step-147 +dashedName: step-148 --- # --description-- @@ -179,13 +179,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -202,7 +202,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa204c1e1d33348ff09944.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa204c1e1d33348ff09944.md index b63d9fcf150..a2926833aba 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa204c1e1d33348ff09944.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa204c1e1d33348ff09944.md @@ -1,8 +1,8 @@ --- id: 62aa204c1e1d33348ff09944 -title: Step 148 +title: Step 149 challengeType: 0 -dashedName: step-148 +dashedName: step-149 --- # --description-- @@ -179,13 +179,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -202,7 +202,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa20e9cf1be9358f5aceae.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa20e9cf1be9358f5aceae.md index 355a4f011d1..56ad26273a4 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa20e9cf1be9358f5aceae.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa20e9cf1be9358f5aceae.md @@ -1,8 +1,8 @@ --- id: 62aa20e9cf1be9358f5aceae -title: Step 149 +title: Step 150 challengeType: 0 -dashedName: step-149 +dashedName: step-150 --- # --description-- @@ -185,13 +185,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -208,7 +208,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2136fc49b836dfedb959.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2136fc49b836dfedb959.md index 67dfb73b231..00864371ff6 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2136fc49b836dfedb959.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2136fc49b836dfedb959.md @@ -1,8 +1,8 @@ --- id: 62aa2136fc49b836dfedb959 -title: Step 150 +title: Step 151 challengeType: 0 -dashedName: step-150 +dashedName: step-151 --- # --description-- @@ -185,13 +185,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -208,7 +208,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa21971e3b743844849985.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa21971e3b743844849985.md index b0a0653d893..fdab53f83c4 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa21971e3b743844849985.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa21971e3b743844849985.md @@ -1,8 +1,8 @@ --- id: 62aa21971e3b743844849985 -title: Step 151 +title: Step 152 challengeType: 0 -dashedName: step-151 +dashedName: step-152 --- # --description-- @@ -197,13 +197,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -220,7 +220,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa21ea8d9d9f396b95dd87.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa21ea8d9d9f396b95dd87.md index 495bec18415..28327f2df53 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa21ea8d9d9f396b95dd87.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa21ea8d9d9f396b95dd87.md @@ -1,8 +1,8 @@ --- id: 62aa21ea8d9d9f396b95dd87 -title: Step 152 +title: Step 153 challengeType: 0 -dashedName: step-152 +dashedName: step-153 --- # --description-- @@ -186,13 +186,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -209,7 +209,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa226207f33d3ad4c6f546.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa226207f33d3ad4c6f546.md index 50a4012b79d..4e51a2397a1 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa226207f33d3ad4c6f546.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa226207f33d3ad4c6f546.md @@ -1,8 +1,8 @@ --- id: 62aa226207f33d3ad4c6f546 -title: Step 153 +title: Step 154 challengeType: 0 -dashedName: step-153 +dashedName: step-154 --- # --description-- @@ -204,13 +204,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -227,7 +227,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa22aba186563bcbf2c395.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa22aba186563bcbf2c395.md index 97d5746c0e6..10e25a721d1 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa22aba186563bcbf2c395.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa22aba186563bcbf2c395.md @@ -1,8 +1,8 @@ --- id: 62aa22aba186563bcbf2c395 -title: Step 154 +title: Step 155 challengeType: 0 -dashedName: step-154 +dashedName: step-155 --- # --description-- @@ -187,13 +187,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -210,7 +210,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa234322d4ad3e8bce42cc.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa234322d4ad3e8bce42cc.md index 81204537ebf..e4229364fac 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa234322d4ad3e8bce42cc.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa234322d4ad3e8bce42cc.md @@ -1,8 +1,8 @@ --- id: 62aa234322d4ad3e8bce42cc -title: Step 155 +title: Step 156 challengeType: 0 -dashedName: step-155 +dashedName: step-156 --- # --description-- @@ -201,13 +201,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -224,7 +224,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2469c77b363fdb4f0e06.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2469c77b363fdb4f0e06.md index 61a267de568..f15af6ce8da 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2469c77b363fdb4f0e06.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2469c77b363fdb4f0e06.md @@ -1,8 +1,8 @@ --- id: 62aa2469c77b363fdb4f0e06 -title: Step 156 +title: Step 157 challengeType: 0 -dashedName: step-156 +dashedName: step-157 --- # --description-- @@ -193,13 +193,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -216,7 +216,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa252c3b1073415ba2b898.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa252c3b1073415ba2b898.md index 151cf4ed2d5..b0c21cb567e 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa252c3b1073415ba2b898.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa252c3b1073415ba2b898.md @@ -1,8 +1,8 @@ --- id: 62aa252c3b1073415ba2b898 -title: Step 157 +title: Step 158 challengeType: 0 -dashedName: step-157 +dashedName: step-158 --- # --description-- @@ -185,13 +185,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -208,7 +208,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa258da314ef42ba0a1858.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa258da314ef42ba0a1858.md index 8ff8ec6621b..b42d8c73a09 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa258da314ef42ba0a1858.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa258da314ef42ba0a1858.md @@ -1,8 +1,8 @@ --- id: 62aa258da314ef42ba0a1858 -title: Step 158 +title: Step 159 challengeType: 0 -dashedName: step-158 +dashedName: step-159 --- # --description-- @@ -211,13 +211,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" } ]; @@ -234,7 +234,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa25fcb5837d43b4d9873d.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa25fcb5837d43b4d9873d.md index b5755984113..ccfde874f8d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa25fcb5837d43b4d9873d.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa25fcb5837d43b4d9873d.md @@ -1,8 +1,8 @@ --- id: 62aa25fcb5837d43b4d9873d -title: Step 159 +title: Step 160 challengeType: 0 -dashedName: step-159 +dashedName: step-160 --- # --description-- @@ -209,13 +209,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, --fcc-editable-region-- @@ -235,7 +235,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2626c3c10244b94c787b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2626c3c10244b94c787b.md index fe6ca291f1f..2b5671c9bc3 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2626c3c10244b94c787b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2626c3c10244b94c787b.md @@ -1,8 +1,8 @@ --- id: 62aa2626c3c10244b94c787b -title: Step 160 +title: Step 161 challengeType: 0 -dashedName: step-160 +dashedName: step-161 --- # --description-- @@ -179,13 +179,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -208,7 +208,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa264d23cdaa45a20efada.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa264d23cdaa45a20efada.md index a19fbf11b7d..14376a5708b 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa264d23cdaa45a20efada.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa264d23cdaa45a20efada.md @@ -1,8 +1,8 @@ --- id: 62aa264d23cdaa45a20efada -title: Step 161 +title: Step 162 challengeType: 0 -dashedName: step-161 +dashedName: step-162 --- # --description-- @@ -195,13 +195,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -224,7 +224,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa26cca3cd3d46c431e73b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa26cca3cd3d46c431e73b.md index 63256c6816a..29fc9a45e98 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa26cca3cd3d46c431e73b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa26cca3cd3d46c431e73b.md @@ -1,8 +1,8 @@ --- id: 62aa26cca3cd3d46c431e73b -title: Step 162 +title: Step 163 challengeType: 0 -dashedName: step-162 +dashedName: step-163 --- # --description-- @@ -191,13 +191,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -220,7 +220,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27227399d647e1c37a3c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27227399d647e1c37a3c.md index 69b01f400a1..5ca591b59dc 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27227399d647e1c37a3c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27227399d647e1c37a3c.md @@ -1,8 +1,8 @@ --- id: 62aa27227399d647e1c37a3c -title: Step 163 +title: Step 164 challengeType: 0 -dashedName: step-163 +dashedName: step-164 --- # --description-- @@ -191,13 +191,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -220,7 +220,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27560def7048d7b4a095.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27560def7048d7b4a095.md index 92445b6b016..291c15f86b2 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27560def7048d7b4a095.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27560def7048d7b4a095.md @@ -1,8 +1,8 @@ --- id: 62aa27560def7048d7b4a095 -title: Step 164 +title: Step 165 challengeType: 0 -dashedName: step-164 +dashedName: step-165 --- # --description-- @@ -179,13 +179,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -208,7 +208,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27c40ca6f04ab8be5fac.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27c40ca6f04ab8be5fac.md index c41ffdbcea4..c6bfcc9003b 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27c40ca6f04ab8be5fac.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27c40ca6f04ab8be5fac.md @@ -1,8 +1,8 @@ --- id: 62aa27c40ca6f04ab8be5fac -title: Step 165 +title: Step 166 challengeType: 0 -dashedName: step-165 +dashedName: step-166 --- # --description-- @@ -185,13 +185,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -214,7 +214,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28032d863d4bd8058799.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28032d863d4bd8058799.md index eb1dfbcb3ee..b6b37d0485b 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28032d863d4bd8058799.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28032d863d4bd8058799.md @@ -1,8 +1,8 @@ --- id: 62aa28032d863d4bd8058799 -title: Step 166 +title: Step 167 challengeType: 0 -dashedName: step-166 +dashedName: step-167 --- # --description-- @@ -183,13 +183,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -212,7 +212,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa287434dc284cea01157c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa287434dc284cea01157c.md index ce6189866f4..c12133a0624 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa287434dc284cea01157c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa287434dc284cea01157c.md @@ -1,8 +1,8 @@ --- id: 62aa287434dc284cea01157c -title: Step 167 +title: Step 168 challengeType: 0 -dashedName: step-167 +dashedName: step-168 --- # --description-- @@ -181,13 +181,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -210,7 +210,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28bbd6323e4dfb3ac43e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28bbd6323e4dfb3ac43e.md index d9ec16a15e7..3c6ca7def3e 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28bbd6323e4dfb3ac43e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28bbd6323e4dfb3ac43e.md @@ -1,8 +1,8 @@ --- id: 62aa28bbd6323e4dfb3ac43e -title: Step 168 +title: Step 169 challengeType: 0 -dashedName: step-168 +dashedName: step-169 --- # --description-- @@ -181,13 +181,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -210,7 +210,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28fb651bf14efa2dbb16.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28fb651bf14efa2dbb16.md index 52ec5a2079e..f6b80acc975 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28fb651bf14efa2dbb16.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28fb651bf14efa2dbb16.md @@ -1,8 +1,8 @@ --- id: 62aa28fb651bf14efa2dbb16 -title: Step 169 +title: Step 170 challengeType: 0 -dashedName: step-169 +dashedName: step-170 --- # --description-- @@ -197,13 +197,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -226,7 +226,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2943669c9d5026af6985.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2943669c9d5026af6985.md index 04c6da995f6..d9f6cd15b5f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2943669c9d5026af6985.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2943669c9d5026af6985.md @@ -1,8 +1,8 @@ --- id: 62aa2943669c9d5026af6985 -title: Step 170 +title: Step 171 challengeType: 0 -dashedName: step-170 +dashedName: step-171 --- # --description-- @@ -198,13 +198,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -227,7 +227,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md index 8c027fab766..c83ca7b6855 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md @@ -1,8 +1,8 @@ --- id: 62aa2999ec27ec516655eba6 -title: Step 171 +title: Step 172 challengeType: 0 -dashedName: step-171 +dashedName: step-172 --- # --description-- @@ -191,13 +191,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -220,7 +220,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa29d8f8f88152c91350ca.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa29d8f8f88152c91350ca.md index b5fc8597c6d..9e6106a0451 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa29d8f8f88152c91350ca.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa29d8f8f88152c91350ca.md @@ -1,8 +1,8 @@ --- id: 62aa29d8f8f88152c91350ca -title: Step 172 +title: Step 173 challengeType: 0 -dashedName: step-172 +dashedName: step-173 --- # --description-- @@ -197,13 +197,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -226,7 +226,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2aec2f09d454253aad6c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2aec2f09d454253aad6c.md index 5a9af82631f..15751da03b4 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2aec2f09d454253aad6c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2aec2f09d454253aad6c.md @@ -1,8 +1,8 @@ --- id: 62aa2aec2f09d454253aad6c -title: Step 173 +title: Step 174 challengeType: 0 -dashedName: step-173 +dashedName: step-174 --- # --description-- @@ -192,13 +192,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -221,7 +221,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2ba9cd881355a6f0a5a8.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2ba9cd881355a6f0a5a8.md index 7bff28bc93a..27fe7f1a822 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2ba9cd881355a6f0a5a8.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2ba9cd881355a6f0a5a8.md @@ -1,8 +1,8 @@ --- id: 62aa2ba9cd881355a6f0a5a8 -title: Step 174 +title: Step 175 challengeType: 0 -dashedName: step-174 +dashedName: step-175 --- # --description-- @@ -183,13 +183,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", @@ -212,7 +212,7 @@ function update(location) { button1.onclick = location["button functions"][0]; button2.onclick = location["button functions"][1]; button3.onclick = location["button functions"][2]; - text.innerText = location.text; + text.innerHTML = location.text; } function goTown() { @@ -557,13 +557,13 @@ const locations = [ name: "lose", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You die. ☠️" + text: "You die. ☠" }, { name: "win", "button text": ["REPLAY?", "REPLAY?", "REPLAY?"], "button functions": [restart, restart, restart], - text: "You defeat the dragon! YOU WIN THE GAME! 🎉" + text: "You defeat the dragon! YOU WIN THE GAME! 🎉" }, { name: "easter egg", diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62ba17beef16c563069a65d8.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62ba17beef16c563069a65d8.md index 710dd2e3c95..5414bfd1777 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62ba17beef16c563069a65d8.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62ba17beef16c563069a65d8.md @@ -7,7 +7,7 @@ dashedName: step-137 # --description-- -In the `locations` array, add another object at the end. Set the `name` property to `lose`, set `button text` to an array with three `REPLAY?` strings, set `button functions` to an array with three `restart` variables, and set `text` to `You die. ☠️`. You can copy that text to use the emote. +In the `locations` array, add another object at the end. Set the `name` property to `lose`, set `button text` to an array with three `REPLAY?` strings, set `button functions` to an array with three `restart` variables, and set `text` to `You die. ☠`. # --hints-- @@ -41,10 +41,10 @@ Your sixth `locations` value should have a `button functions` array with three ` assert.deepEqual(locations[5]["button functions"], [restart, restart, restart]); ``` -Your sixth `locations` value should have a `text` property with the value `You die. ☠️`. +Your sixth `locations` value should have a `text` property with the value `You die. ☠`. ```js -assert.equal(locations[5].text, 'You die. ☠️'); +assert.equal(locations[5].text, 'You die. ☠'); ``` # --seed-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/65b2f6acce65b7a69751a090.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/65b2f6acce65b7a69751a090.md new file mode 100644 index 00000000000..c83387bc8d4 --- /dev/null +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/65b2f6acce65b7a69751a090.md @@ -0,0 +1,356 @@ +--- +id: 65b2f6acce65b7a69751a090 +title: Step 139 +challengeType: 0 +dashedName: step-139 +--- + +# --description-- + +In order for the `☠` emoticon text to properly display on the page, you will need to use the innerHTML property. + +The `innerHTML` property allows you to access or modify the content inside an HTML element using JavaScript. + +Here is an example of updating the content for this paragraph element using the `innerHTML` property. + +```html +
This is a paragraph.
+``` + +```js +document.querySelector("#demo").innerHTML = "Hello, innerHTML!"; +``` + +In the `update` function, change `text.innerText` to `text.innerHTML`. + +# --hints-- + + +You should use dot notation to access the `innerHTML` property of `text`. + +```js +assert.match(code, /text\.innerHTML/); +``` + +You should not use `let` or `const` to access the `innerHTML` property of `text`. + +```js +assert.notMatch(code, /(let|const)\s+text.innerHTML/); +``` + +You should set `innerHTML` equal to the `text` property of `location`. + +```js +assert.match(code, /text\.innerHTML\s*=\s*location\.text/); +``` + + +# --seed-- + +## --seed-contents-- + +```html + + + + + +