@zeven one problem iv noticed is that you are adding them all together when it should be return the sum of all odd Fibonacci numbers that are less than or equal to num
another issue is your not handling num less than 2 so sumFibs(1) will fail
The boolean expression in for loop should not check whether the current index is equal to “num”, but whether the current number you are pushing to the array is at least equal to or more than “num”.
The index in for loop only denotes position of certain number in fibonacci squence.