Challenge: Hide & Show
This challenge will test your skills in implementing DOM related functions to hide and show text on a click.
We'll cover the following
Problem statement #
In this challenge, you need to implement the text hiding functionality. Clicking on the button shown in the output tab below should hide the text Hello World!
. Clicking it again should display it and so on. Do this by implementing the hideShow
function.
Go through the HTML code before implementing the JavaScript function.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.