classList.remove
classList.remove
classList.remove removes one class without touching the other classes on the element. That is useful when a class represents temporary state, such as hidden, selected, or loading.
Replacing the whole className string can accidentally erase layout or component classes that still matter.
Your task: Select the trial banner and remove the is-hidden class. Keep its banner class.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
classList.remove
classList.remove removes one class without touching the other classes on the element. That is useful when a class represents temporary state, such as hidden, selected, or loading.
Replacing the whole className string can accidentally erase layout or component classes that still matter.
Your task: Select the trial banner and remove the is-hidden class. Keep its banner class.