Help with 11/12


I don't know what's wrong with my code

$(document).ready(function() {
$(document).keydown(function(key) {
    switch(parseInt(key.which,10)) {
		// Left arrow key pressed
		case 37:
			$('img').animate({left: "-=10px"}, 'fast');
		// Up Arrow Pressed
		case 38:
			// Put our code here
		// Right Arrow Pressed
		case 39:
			// Put our code here
		// Down Arrow Pressed
		case 40:
			// Put our code here



Hi Poisoninsect,

You've got two problems I see right off. top and left should be in quotes, like "top". Also, you need to use -= or +=. In the second animate(), you're forgetting the equal sign (=), and you're forgetting both the equal sign and the plus sign (+) in the last two.