Javascript change cards' numbers programmatically based on keyboard pressed number

Опубликовано: 25 Июль 2026
на канале: codingSteps
9
1

Hello. In this video we'll make a small website (program) that takes all keyboard keys as input but responds in a way for "2, 3, 4 and 5" by showing the appropriate card on the screen as an image. If the input of the keyboard isn't "2, 3, 4 or 5" then the website shows an image that is different, showing that the key pressed isn't accepted.