This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by stephWmS
almost 9 years

28/28 Results saying I haven't logged anything and the statement is in the console

Here is my code:

if (“Steph”.length = 5) { console.log = “I finished my first course!”; } else { console.log = “Incorrect”; }

Instructions say that the result of evaluating the statement is a log to the console of “I finished my first course!”. THe statement is showing in the console, and I am still getting an error message.

Any insight appreciated!

Answer 5561530a9113cbdd2f0000b2

0 votes

Permalink

if (“Steph”.length =5) {

console.log (“I finished my first course!”);

} else { console.log =(“Incorrect!”);

}

points
Submitted by sameer38
almost 9 years

1 comments

Tyler James Carpenter almost 9 years

I am having the same problem

Answer 5562a30276b8fe701500091d

0 votes

Permalink

I was having the same problem too, but finally got it to work:

if (1 + 2 ==3) { console.log(‘I finished my first course!’); } else { console.log(‘False!’) }

points
Submitted by Alina Tsui
almost 9 years

Answer 55746a4b9113cbb576000578

0 votes

Permalink

Thank you all so much! Your help is appreciated. It worked and I see the error now.

points
Submitted by stephWmS
almost 9 years