Getting started with Programming 19/28


#1

I'm stuck with this task and just can"t get where is my mistake. If anyone know what to do. Please, I need your advice and help with this.

if ("Jon".length * 2 / (2+1) === 2 )
{
console.log("The condition is true!");
}
else
{
console.log ("Error Error Error")
}


#2

Hi,

console.log() needs a semicolon at the end :smile:

console.log("Error Error Error");

KR
Dookoo


#3

I have a parenthesis at the end and the code is still not working!


#4

I meant to say semicolon, but in any case, I've figured it out. I was using 'confirm' from the previous example instead of console.log, so now it is working.


#5

it does not work with confirm ;-( could you send me a right answer please i'm stucked


#6

@bdevaser @ajaxrunner09100

Dont change the text in the if statement !!!

 if ("Jon".length * 2 / (2+1) === 2 )
    {
        console.log("The answer makes sense!");
    } 
    else {
        console.log("Error Error Error");
    }

#7

what is 24's programming.