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

banner
Close banner
0 points
Submitted by Amit Singh
over 9 years

Oops, try again. It looks like you didn't log anything!

What’s wrong with my coding below, please help???

if (7===7) { console.log=(“I finished my first course!”); }

else

{ console.log=(“long way to go!”); }

Answer 53ced5cb9c4e9da17900046f

0 votes

Permalink

A semi column after a line tells the computer to do the operation “quietly” (without you seeing it). Erase the two semi columns after the console.log operations and you are good to go.

points
Submitted by PurelySmart
over 9 years

1 comments

Roy over 9 years

Wrong. The semi-colons stay. They tell JavaScript to stop reading and start interpreting and executing the statement.

Answer 53cef7729c4e9d55c000037a

0 votes

Permalink

The problem is this,

console.log=("..");

should be,

console.log("..");
points
Submitted by Roy
over 9 years

2 comments

Amit Singh over 9 years

@Roy, I agree with you. However, I get new error message “Oops, try again. Your code doesn’t look quite right. Check the Hint if you need help!”

PurelySmart over 9 years

@Amit Singh I erased the semicolons from your code and it worked.