Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Why Am I getting NAN? Please help!

So, coded along with the video and even pasted in the final code but i am still getting NAN in the total point in the stats. What could be causing this?

6 Answers

I can’t see the image properly however NaN means not a a number, try to check with type of() what is the type of the object ur working with

can u add a snapshot?

Hey dot com, I really appreciate your help. I don't know what happened. But, i woke up this morning, started the app and the NAN was gone. And the counter was working fine.

glad to hear that. maybe u did something but u didn’t saved it and now it works.

I dont know! But it was driving me crazy!