Javascript conclusion pt 2 trouble


#1



Replace this line with your code.


#2

i put
if
("apple".length = 4)
console.log(true)
else
console.log(false)


#3

Hey, I think something went wrong when posting your code (and question).
Follow these instructions to show your code in a good way:


#4

In javascript, you put the code that will be executed when an if-statement is true (and false aswell) between curly braces ({ and }) and end lines with a semicolon ( ; ).

So the stucture of an if-statement should look like this:

if (condition) {
    console.log("The condition is true!");
} else {
    console.log("The condition is false!");
}

#5

the name of the time tink so


#6

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