Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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!