diff --git a/curriculum/challenges/english/blocks/workshop-note-taking-app/688141e05e367de0e3ef7635.md b/curriculum/challenges/english/blocks/workshop-note-taking-app/688141e05e367de0e3ef7635.md index 51199ac38e5..5355dee7350 100644 --- a/curriculum/challenges/english/blocks/workshop-note-taking-app/688141e05e367de0e3ef7635.md +++ b/curriculum/challenges/english/blocks/workshop-note-taking-app/688141e05e367de0e3ef7635.md @@ -7,7 +7,7 @@ dashedName: step-7 # --description-- -Right now, `currentContent` is initialized with the value of an empty string. But the desired result would be to have `currentContent` hold the value of the current note text. +Right now, `currentContent` is initialized with the value of an empty string. But the desired result would be to have `currentContent` hold the value of the current note text. In an earlier lecture, you learned how to work with the `DOMContentLoaded` event like this: @@ -19,7 +19,7 @@ window.addEventListener("DOMContentLoaded", () => { When everything in the HTML document has been loaded and parsed, you will be able to access the `noteEl` safely. -Start by attaching an `addEventListener` method to the `window` object. The first argument for the `addEventListener` method should be the `"DOMContentLoaded"` event. The second argument should be an arrow function. Inside the body of the arrow function, reassign `currentContent` to the value of `noteEl.textContent`. +Start by attaching an `addEventListener` method to the `window` object. The first argument for the `addEventListener` method should be the `"DOMContentLoaded"` event. The second argument should be an arrow function. Inside the body of the arrow function, assign the value of `noteEl.textContent` to `currentContent`. # --hints-- @@ -35,7 +35,7 @@ Your event listener should listen for the `"DOMContentLoaded"` event. assert.match(code, /window\.addEventListener\(['"]DOMContentLoaded['"]\,/); ``` -Inside the body of the arrow function, you should reassign `currentContent` to the value of `noteEl.textContent`. +Inside the body of the arrow function, assign the value of `noteEl.textContent` to `currentContent`. ```js const event = new Event("DOMContentLoaded"); @@ -61,15 +61,15 @@ assert.equal(currentContent, noteEl.textContent);
Click or tap on the card to edit your note.