Help please


#1


1. Complete the missing bits of code to construct the if / else statement. Make the condition evaluate to true.



2. Finish the else statement by printing out the string "Error Error Error" to the console.



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


#2

Can you please give me link to exercise :wink:


#3

Ok so

your missing the if so it should be if("Jon".length * 2 / (2+1) === 2)
also missing a ; at the end of console.log("Error Error Error") so it should be console.log("Error Error Error");
also the code should ideally should be like this
if("Jon".length * 2 / (2+1) === 2)
{
console.log("The answer makes sense!");
}
else
{
console.log("Error Error Error");
}`

Except for that your all good :wink:


#4

Thanks you for the help :slight_smile:


#5

no problem dude......


#6

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