Whats wrong with my code?


#1


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


TypeError: console.log is not a function. (In 'console.log("You got a true!")', 'console.log' is "wow")


if ( 10 === 10)
{
console.log("You got a true!");
}
else
{
console.log("You got a false!");
}


#2

maybe you did something like console.log=

  • now cut your whole code
  • refresh your browser
  • paste your code
  • run it

#3

there suppose to space at console.log for row 6 and 8


#4

if( true ) {
console.log("The first number is even");10 % 2 === 0
} else {
console.log("The first number is odd");
}


#6

I had this same problem. But I just put a wrong string :wink:
if (3 + 7 > 8)
{
console.log("I finished my first course!");
}
else
{
console.log("Good morning!");
}


#7

:joy: That is aawsome


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.