Sum All Primes do not pass (solved)

Sum All Primes do not pass (solved)
0

#1

Hi All
I’m getting this error:
TypeError: unknown: undefined is not an object (evaluating 'o[a]') but code is passing in IDE even in dev tools. I can’t figure out what is going on. Can someone explain to me why? Thanks


#2

I’ve figure out that it has to do something with syntax. Adding curly braces helped and code is passing.