Javascript exercise

Does Fred reach his destination?

Sign in to hand in your solution and get feedback.