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 trialBryce Linch
7,495 PointsHow do i bring up the console it's asking?
It's telling me to bring up the "console"... so i clicked Ctrl Shift J, and brought it up and tried the whole node
name
it didn't like this... so not sure how to bring up the console it's asking.
3 Answers
rydavim
18,814 PointsI'm not sure what ctrl+shift+j
brings up on your machine, but all challenge code is written in the the area provided. In this case, you're adding to the code in the provided app.js
file.
For the first stage, when it asks you to use the log
method on the console
object, you'll need to call the method using dot notation. You're printing out the name
variable, so use that as the argument.
console.log(name);
That should get you started, but let me know if you have any more questions.
Jason Anders
Treehouse Moderator 145,860 PointsHey Bryce,
If you're working in Workspaces, it's talking about the console in Workspaces. The console is at the bottom of the Workspace window. If it is not visible, in the Workspace menu bar View > Show Console.
:)
Bryce Linch
7,495 PointsHmm. In the general workspaces I see it! I'm doing the challenge though, and I have no "view" button like I do in workspaces... I'm not sure how to bring it up in the challenge
Joakim Skansen Flatmoen
Courses Plus Student 24,223 PointsHey. If you are referring to the challenge, it wants you to log it out to the console, as a massage. the console object has several methods that can be used on it, like feks "console.log". for more information see the following Link
var name = "Andrew";
var details = { favouriteLanguage: "JavaScript", age: 31, children: 2.4 }
var errorMessage = "Something bad has occurred";
console.log(name)
console.dir(details)
console.error(errorMessage)
Bryce Linch
7,495 PointsBryce Linch
7,495 PointsAhh I didn't realize it just wanted a console.log.... That was my bad... the way it was said confused me! Thank you everyone!