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 trialGeoffrey Burkholder
Full Stack JavaScript Techdegree Student 1,881 PointsMy answer works in the console, but it is still wrong?
I wrote a block of code that answers the question asked when i put it in the console. but it is still wrong?
for (let j =5; j <= 100; j ++) {
console.log(`#${j}`);
}
4 Answers
Steven Parker
231,172 PointsIt's important to only do what a challenge asks in order for it to be able to score your result properly.
In this case, they asked that you log just the numbers, so converting them to strings and adding the "#" symbol in front is confusing the checking system. Just log each number itself and you'll pass:
console.log(j);
Geoffrey Burkholder
Full Stack JavaScript Techdegree Student 1,881 PointsI did indeed do that and it worked!
Allen Dean
5,702 PointsHi Steve! I'm having the same problem with the console command. can you help?
Steven Parker
231,172 PointsIf your issue isn't exactly the same (and resolved by the answer given here), then start a new question, and show your code there.
From the challenge page, use Get Hints
Ask the Community
Post a new question
.
Allen Dean
5,702 PointsThanks Steven! I figured it out.