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!
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 trial
When I look in the console on the webpage it pulls up everything I console log is undefined. What am I doing wrong?
Nothing shows up in the console when I use this code:
const passphrase = 'Open Sesame'; console.log(passphrase.toLowerCase());
- Did you save your file? If not save your file and run the program again.
Steven Parker227,102 Points
For me the console displays "open sesame".
But if you're typing this directly into the console, the console typically shows you the value returned from any statement you enter. Neither an initialization or a console.log function return anything, so it would also display "undefined".