Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • David S 150

    @davsanter1

    Submitted

    Hi! Here is my solution but it's kinda faulty 'cause you must click twice so it works, after that, it works normally. I know there must be a more efficient way to write the JS code but I could not figure out how. Any advice is very welcome, please!

    @Prabhashbhajnai

    Posted

    parag.style.display === 'none' for this line in your js file you must check one more condition if style.display is empty string or not parag.style.display === 'none' || parag.style.display === ''

    this way the user doesn't need to click twice

    Marked as helpful

    1