8 functions return and if else


#1




so what's the issue here


Replace this line with your code.


#2

if (quarter(12) % 3 === 0)

You should not set the value of quarter inside the "if" (remove the "(12)" ).

Outside the complete code (at the end), you should set the value there:

quarter(VALUEHERE); (12)

(Remember, the if / else statement must log "The statement is true".)


#3

The only problem i see on your code is it printed "the statement is true" instead of "The statement is true"
see the difference? the lowercase t and uppercase T.


#4

Maybe it's tripped up because I don't see ; after the first }.
So instead:
var quarter = function(number){
return number /4;
};


#5

This is perfectly alright. The only issue is the text, itself. The statement is true, just as in the error message.


#6

Yeah I'm stuck on this one too! Did you ever figure out the answer?


#7

I think @gracie017 had the right idea; were you able to figure it out?


#8

Gracie thanks it was exactly that mistake of upper case vs Lower-case


#9

Gracie was right the Upper-case T in the had to be Upper-case


#10

Yup simple tiny mistake threw it all off


#11

Thanks it wasn’t that it was just a case issue in The Letter T


#12

Hi Paul,

I was referring to @ericaacker's program, but I'm glad to hear that that indeed solved your question :nerd:


#15