on-internet
← Community

I need help passing this flipped class to this button element [closed]

Stack Overflow ·

I cant seem to pass these tests on "freecodecamp.org". The main goal of the lab is to create a Flashcard-Quiz-App, using HTML, CSS and typeScript. Its supposed to be an app that displays and stores flashcard data that can be retrieved later. And so far on test #6 its asking me to have a button that when first clicked will pass a class named flipped to an element named flashcard. So far I made a addEventListener to set a currentCardIndex to that cards position. With an .add classList to add the flipped class and it seems to work better than .toggle, however I believe the bug or missing code, li

Comments

Sign in or sign up to comment and upvote.

No comments yet.