Sum All Odd Fibonacci Numbers - bug?

Hello fellow freecodecampers! Please have a look at this. Is this a bug? It looks like a bug. Any advice?

Those global variables are causing a problem with tests. Remove the console.log statement and see if you pass. Also, in the future, please post actual code and not a screenshot, because we don’t want to type your code out to test it.

Thanks.

2 Likes

I see. It must be the global variables, because I already tried without the console log and it didn’t work.

Oh, you are so right, sorry about that. I will always use a code excerpt from now on, instead of a screenshot.

Thank you very much for your answer, Randell!