Math 19 Javascript lesson 1

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


Can Someone help me with this

Never Mind I have found out what I had done wrong :smirk:

1 Like

Got to make sure you have your if statements compare two things :smile:

Ya I noticed that after I posted this but thanks anyway :innocent::sunny:

1 Like

please help me to do that i have the same problem

please give me the answer for maths 19

@zarazara

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

Here is the solution , make sure u only take reference, try to use ur code. It will help to boost ur confidence.

2 Likes

thank u very much dr.yeah i got a strugle in this chapter.thatsy asked the solution.yes i will use my code in coming chapter.thanks for ur advice again.have a nice day.

i tried that answer but it shows an error message that there was a problem with ur syntax

@zarazara pls show ur code??

This is Correct Buddy

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

1 Like

I don’t understand… Why is it equal 2?

This topic is really old, if you still have a question you can make a new topic