JavaScript Node.js Basics Introduction to Node.js The Console

You didn't pass in the `name` variable in to the `log` method.

You didn't pass in the name variable in to the log method.

console.log("Hello This is Ravishanker");
console.error("This is Error, on looading page");
console.dir({name:"M Sakthi", age:33});

1 Answer

Steven Parker
Steven Parker
168,640 Points

Never remove any code given in a challenge (unless asked to explicitly).

You will need to keep the constants that were defined for you at the beginning of the challenge. Then you will add code to the end to accomplish the tasks.

Your first task is "Use the log method on the console object to print out the name variable." And name was one of the constants that had been defined for you. You will use it to complete this task.