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 trialCalvin Luo
Full Stack JavaScript Techdegree Student 11,952 PointsWhy req.body.number suddenly has an issue in this example?
So I understand that .number is the name of the post form being submitted. I'm confused why it stopped working suddenly after you pass an if condition testing (isNan). It was working before you refresh the page without that if statement, but that if statement is not changing anything about the post form. Why the same error wouldn't show before?
1 Answer
Calvin Luo
Full Stack JavaScript Techdegree Student 11,952 PointsNVM I think I understand now. It's just when you first open the page without any input in the form, the req.number is still undefined.