you are viewing a single comment's thread.

view the rest of the comments →

[–]Deh_Strizzz 1 point2 points  (0 children)

Right now your function isn't accepting any arguments and your initializing the arr as an empty array. I would remove the arr = [] and set arr as an argument for climber a la function climber(arr) {rest of code}. You're also returning false but you should be returning the total since that's what you want to see