Lesson 19 math


#1



I am so lost i have been stuck for 2 days any help would be great.


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


#2

where is your if keyword?


#3

Hello @objectpro68386,

what do you want to do by the first line?
( ("Jon".length * 2 / (2+1) === 2) { )


#4

what do you mean by that I am completely new to coding


#5

you have a condition here:

("Jon".length * 2 / (2+1) === 2)

usually there is a if or else if in front of it:

if ("Jon".length * 2 / (2+1) === 2)

to indicate the program is going to need to make a decision.


#6

okay thanks i will try that


#7

Yes thanks it works I am totally stupid about this stuff.


#9

Programming is difficult to get into, keep practising, it will come