could someone give me a hint on what they did to solve the "Sum All Odd Fibonacci Numbers" algorithm? I've crashed Codepen like 5 times testing out different loop methods lmao.
@BrianWilliams28 I used a while loop to .push() each number of the fibonacci sequence to an array, filtered out the odd numbers with .filter() and then used .reduce() to sum everything up
@SkyC0der how did you write your while loop? I can't figure out how to make it iterate through the fibonacci numbers
Array starts with [1, 1] nextnumber = last number of array + second to last number of array push nextnumber
keep looping until nextNumber is >= to the number passed to the function
Hi folks, was given help to get this work yesterday and forgot to save before I sgut down and I'm damned if I can remember what I had to do. I think it was changing the json to jsonp at the end but that doesn't seem to do anything