- Joined
- Aug 17, 2016
- Messages
- 11,754
- Reaction score
- 21,657
- Points
- 1,538
- Location
- CT's Attic
- Gender
- Male
You see.Well, its a switch case. In this, the switch is the keycode of the key pressed. So if you press the 4 key (keycode 52) or the numpad 4 key (keycode 100), it triggers the code beneath it until the break; which is "answer(3)". answer(3) calls the answer function with the value of 3, which tells the function to click the radio button at the 3th index, which is the 4th radio (because javascript is 0 indexed, so the first element is 0, 2nd element is 1 and so on).
these too are some awesome words.
they all come together and sentences and they explain how things work.
Um.
I'm going to go with Yes