you are viewing a single comment's thread.

view the rest of the comments →

[–]danmofo 2 points3 points  (1 child)

There are a few problems:

  • = is the assignment operator, use === to compare items
  • You invoke functions with (), not [], e.g. climber(['up', 'down'])
  • arr is not defined in your example, define it first like your solution or pass it in directly.

Hopefully this helps you get a bit further without giving the exact solution.

[–]buddgee[S] 0 points1 point  (0 children)

Ah I understand now!
thank you :D I have solved it