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 trial

JavaScript

No answer printed in the web-developer (updated with snapshot)

I am working on callback functions in javascript. I have opened the index.html and hit the eye-symbol, expecting the "hello" output, if I enter in Firefox the webdeveloper-> browser console, but I dont see anything. Most probably I forgot something. Can someone see, what I am missing. Here is my snapshot-link: https://w.trhou.se/o1877m7s9m

Thanks

Steven Parker
Steven Parker
243,215 Points

To make it possible for someone to check your work, make a snapshot of your workspace and post the link to it here.

1 Answer

Steven Parker
Steven Parker
243,215 Points

Your functions are using "console.log" for the output, so it will not appear on the page itself.

The logged output can be seen by opening the JavaScript console in your browser (F12 in Chrome, and then select the "Console" tab).

Alternately, you could replace "console.log" with "document.write" to display the output directly on the page (but it may be hard to see on the dark background).