21 Day Coding Challenge

Challange #13 help me here, please, find what's wrong in my code!

#1

#2

Take a close look at your for loop’s condition. Does your for loop run 12 times like the challenge asks?

#3

Also, you don’t seem to break out of the loop, once you meet the one you’re looking for. :slight_smile: Which would result in the last value that isn’t undefined to be assigned to navigation.x, instead of the first one.