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?

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!