Console.log not working even if properly done? ~Javascript error~


#1


I'm stuck at exercise 20. Math and the modulo.


Oops, try again. It looks like the first console.log() isn't quite right.


if ( 14 % 3 === 2 )
{
 console.log("That is right!");
}
else
{
    console.log("You need the remainder!");
}
if ( 99 % 8 === 3 )
{
    console.log("That is right!");
}
else
{
    console.log("You need the remainder!");
    }
    if ( 11 % 3 === 2 )
    {
        console.log ("That is right!");
    }
    else
    {
        console.log("You need the remainder!");
    }


#2

@jacobtu,

https://www.codecademy.com/en/courses/getting-started-v2/3/3?curriculum_id=506324b3a7dffd00020bf661

Instructions:
Use console.log and modulo three times to print the remainder of the following equations:

a. 14 / 3
b. 99 / 8
c. 11 / 3

You will only have to use
for instance .....

 console.log(14 % 3);

#3

Console.log (14 % 3 );
Console.log (99 % 8 );
Console. Log (11 % 3 );


#4

I dit it exactly like that and it replies with console.log is not a function??


#5

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