Math 19 Javascript lesson 1


#1

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


Can Someone help me with this


#2

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


#3

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


#4

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


#5

please help me to do that i have the same problem


#6

please give me the answer for maths 19


#7

@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.


#8

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.


#9

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


#10

@zarazara pls show ur code??


#11

This is Correct Buddy

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


#12

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


#13

#14

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