17/28


#1

Cant understand what Im doing wrong :frowning:


#2

What is the code you are using ??


#3

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


#4

Try it with the condition
(10 === 10)

and be aware of the difference between == and ===
read comparison operator in
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators


#5

It tells me

Oops, try again. It looks like your if/else didn't log 'You got a true!' to the console.

But I put them to... Now I`m stuck ;(


#6

Have you tried
a RESET
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum from Tony de araujo
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).


#7

I did everything. it still won`t work :frowning:


#8

Its bugged then, or some little deital is wrong in your code


#9

It seems all correct.. like, this is what I did!

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

You pretty much did the same thing.... maybe you have to do TABon console.logs, but you may have already done it... This sure is unusual.


#10

:tulip: Thank you!
I copy/past your replay and it worked :grinning: