PavvelD
@PavvelDAll solutions
- Submitted 8 months ago
FAQ according main
- HTML
- CSS
- JS
I would like to ask for help with my Javascript solution. I have done listening on "click" and "keydown" to show the answers. I made switching between questions with "ArrowDown" and "ArrowUp", and opening the answer with "Enter". I also added a border to the current question selected with the key. When I switch only in one direction everything is OK, but if I want to change the direction of switching, the first step goes in the opposite direction than it should, then it is OK.
Please advise me what I could improve in my code, information on what I have done wrong. Thanks!