diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-the-date-object-by-building-a-date-formatter/65388ac7154e44b72c74d616.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-the-date-object-by-building-a-date-formatter/65388ac7154e44b72c74d616.md index 24181f065b2..9fb64bf6f3a 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-the-date-object-by-building-a-date-formatter/65388ac7154e44b72c74d616.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-the-date-object-by-building-a-date-formatter/65388ac7154e44b72c74d616.md @@ -7,21 +7,6 @@ dashedName: step-14 # --description-- -In JavaScript, the `textContent` property is used to both get and set the text of a node. - -For example, here's how you can get the text content from a paragraph element with the id `example-paragraph`, and set its text content to a new value: - -```html -

Example Text

-``` - -```js -const exampleParagraph = document.getElementById("example-paragraph"); -console.log(exampleParagraph.textContent); // "Example Text" -exampleParagraph.textContent = "New Text"; -console.log(exampleParagraph.textContent); // "New Text" -``` - Use the `textContent` property on `currentDateParagraph` to set its text content to the value of the `formattedDate` variable. Also, make sure to remove your `console.log(formattedDate);` line.