Help With Sky Pirates - Conditionals in Javascript

Can someone please provide help with the coding in Javascript Sky Pirates - my son is stuck on Sky Pirates Unit 3 Lesson 2. He is stuck on Path Left and cannot figure out the coding to proceed. Thanks!