[12/12] You Did It!


I feel like an exercise was left out of this lesson.

Exercise 11: the only instructions given were to use the arrow keys, or cases 37, 38, 39, 40.

Yet, we should be able to use w,s,a,d controls in exercise 12. How is this?

If anyone was wondering though:

w: case 87
s: case 83
a: case 65
d: case 68

Text wrong (jQuery Events: Ex 12)

This is a remnant of the original course. The arrow keys were introduced in the revised version. Remember we can 'stack' (my word) cases:

case 65:
case 37: // code


That makes sense. Thanks for the explanation :slight_smile:

Also, I was not aware that you could use multiple cases in the switch. Thank you for that!


Built in redundancy is a good thing in IA so that you can reach across multiple contexts. I'm no expert but you will encounter much more discussion on this if you are actually training to be a programmer, developer, information scientist, &c.