What's wrong with console.log?


#1

Everything is ok, but it tells me "Oops, try again. It looks like the first console.log() isn't quite right."

https://www.codecademy.com/en/courses/getting-started-v2/3/3?curriculum_id=506324b3a7dffd00020bf661#


Replace this line with your code.


#2

Hi can your post your code ?

here how to format it


#3

Please post your code, the link shows us what we've done.

Correct console.log() syntax:

console.log("Hello World!");

#4


#5


#6

You don't want quotes around the equation, as you want to evaluate it for an answer to be printed.


#7

Thanks! So this rule is just for modulo only or for numbers in general?


#8

This is a rule for any operation, the only time you want quotes is for strings.

console.log("Hi"); //String
console.log(1); //Number
console.log(3 * 2); //Operation
console.log(func()); //Function Call