function sumFibs(num) {
var fibonacci = [1, 1];
for (var i = 1; i < num; i++) {
var answer = fibonacci[i] + fibonacci[i - 1];
fibonacci.push(answer);
}
return fibonacci;
}
sumFibs(5);
Above is my code I am using to understand the problem. It is an incomplete solution. The problem I am having is that the code is crashing FCC challenge. I ran the code on Codepen.io with no issues. What am I missing?