From b0bdd6d254c3ef4bce97280de08810b18872e254 Mon Sep 17 00:00:00 2001 From: Alagu Muthiah <57620699+alagumuthiah@users.noreply.github.com> Date: Thu, 1 Feb 2024 04:37:52 -0800 Subject: [PATCH] fix(curriculum): code example for remove method (#53491) --- .../63c9e94e9df7d72aed1c24bd.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-form-validation-by-building-a-calorie-counter/63c9e94e9df7d72aed1c24bd.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-form-validation-by-building-a-calorie-counter/63c9e94e9df7d72aed1c24bd.md index 5134f8cd8b2..e19051dfbf0 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-form-validation-by-building-a-calorie-counter/63c9e94e9df7d72aed1c24bd.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-form-validation-by-building-a-calorie-counter/63c9e94e9df7d72aed1c24bd.md @@ -9,7 +9,12 @@ dashedName: step-85 Finally, you need to make the `#output` element visible so the user can see your text. Your `output` variable is an Element, which has a `classList` property. This property has a `.remove()` method, which accepts a string representing the class to remove from the element. -Use the `.remove()` method of the `output` variable's `classList` property to remove the `hide` class. Don't forget to place the word `hide` inside quotes. +```js +const paragraphElement = document.getElementById('paragraph'); +paragraphElement.classList.remove('hide'); +``` + +Use the `.remove()` method of the `output` variable's `classList` property to remove the `hide` class. Don't forget to place the word `hide` inside quotes. # --hints--