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 trialBarry Cantrell
68 PointsUsing console.log() in app.js
Just an observation.....when using console.log() in app.js an error was thrown in Google Chrome dev tools console, so I used document.write() instead. The error I was getting was "Uncaught ReferenceError: Console is not defined at app.js:1" The Hello message now displays on the RSVP page using document.write() My text editor is Notepad++ and using Chrome browser v68.
2 Answers
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsHi Barry,
Make sure you are using lowercase for your console.log
statement. From your error it looks like your are using uppercase Console.log
. JavaScript is case sensitive.
console.log("Hello from app.js");
Vaidehi S
5,731 Pointsmy app.js file is on the parent and i typed console.log("Hello from app.js"); yet its not connecting and giving me error: "Unchecked runtime.lastError: The message port closed before a response was received."
What does this mean?
Barry Cantrell
68 PointsBarry Cantrell
68 PointsHi Dale
You're right. I used an uppercase "C" It works now using the lowercase "c".
Thanks.