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 trialMuhammad Jalabi
6,782 PointswhileLoops error not making me wiser
Basically I did this a bit different and got everything right but now when I corrected myself according to the video I'm getting a strange error: ReferenceError: print is not defined
Reference: http://w.trhou.se/toffiu5ye3
1 Answer
Muhammad Jalabi
6,782 PointsSilly me, I kept getting the error because when I was redoing the challenge I had marked everything beyond the first loop as comment, thus blocking out the following code:
// Feel free to ignore this print function. It just formats the output a bit. function print(text) { console.log(text); if (!text.endsWith(':')) { console.log(''); } }
Good job, me.. good job!