17/28 I dont find the error... plz halp


#1


Javascript 17/28
I dont know where the mistake is ??

// The computer doesn't worry about extra spaces between words or brackets

// It just cares about the order of where things are placed

// and that you have used the right characters (){}[]"";



// For extra help, a program called a 'linter' is checking your code

// and will put a red 'x' next to the first line that contains errors



if ("10 === 10") {

    console.log("You got a true!");

} else {

    console.log("You got a false!");

}


#3

you use " to indicate strings, you could just compare 10 (integer -> non decimal number) with 10:

if (10 === 10)

or you can compare strings if you like:

if( "10" === "10")

but then make sure to place the quotation marks around the string.


#4

Thanks bro! BUT i tried hat and it appears this msg

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


#5

can we see an updated version of your code?


#6

Ok bro

// The computer doesn't worry about extra spaces between words or brackets
// It just cares about the order of where things are placed
// and that you have used the right characters (){}[]"";

// For extra help, a program called a 'linter' is checking your code
// and will put a red 'x' next to the first line that contains errors

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


#7

there shouldn't be a equal sign after console.log.


#8

But it says me TypeError: console.log is not a function


#9

console.log is a function, can i see an updated version of your code?


#10

// The computer doesn't worry about extra spaces between words or brackets
// It just cares about the order of where things are placed
// and that you have used the right characters (){}[]"";

// For extra help, a program called a 'linter' is checking your code
// and will put a red 'x' next to the first line that contains errors

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


#11

should work fine, seems you hit a glitch. Try refreshing the page/different browsr


#12

Thanks bro i trieed this 2 days, it was the browser


#13