From f5475414edaaadbb842c9fb9c943e53176759bd1 Mon Sep 17 00:00:00 2001 From: Govindapalle Vijaychandra <118375565+Vijaychandra-Govindapalle@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:07:29 +0530 Subject: [PATCH] fix(curriculum): remove explanation for textContent property (#53142) Co-authored-by: Mama Naomi Co-authored-by: Pratyansh Agrawal Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> Co-authored-by: Shivam Gupta <95732954+shivam-0510@users.noreply.github.com> Co-authored-by: jdwilkin4 Co-authored-by: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com> Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../65388ac7154e44b72c74d616.md | 15 --------------- 1 file changed, 15 deletions(-) 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.