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 trialSophia Sundance
1,300 PointsCould it be that there is a bug in the test? If I want to type a number the program asks for a string.
If I use a string, the program asks for a number. There is no solution possible.
const myAge = 34;
1 Answer
Steven Parker
231,236 PointsThe instructions say "Create a variable named myName
and assign it your name as a string", so using a string is part of the correct solution.
And when you use a string, the challenge is not asking for a number. It says, "Bummer: Did you create a variable named myName
and assign it a string?"
The issue isn't the value — it's from using "myAge" as the variable name instead of "myName".