fix(curriculum): code example for remove method (#53491)

This commit is contained in:
Alagu Muthiah 2024-02-01 04:37:52 -08:00 committed by GitHub
parent 78c4f0871a
commit b0bdd6d254
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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--