var ship = {
speed: 256;
};
Remove the ;
after the value.
if astroid.width < 200{
and
if astroid.width > 200{
Need parentheses around the if
conditions.
The error console is helpful! But now it's just stuck in an infinite loop of monsterImage is not defined
. Just... go back, write your code more carefully, and use the error console! It's there for a reason!