8. Introduction to Functions in JS (need help)


#1



can someone plz tell me whats wrong with my code??

https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/1/3?curriculum_id=506324b3a7dffd00020bf661

the error message is 'Oops, try again. Hmm, it looks like your quarter function doesn't return -25 for -100.'

// Define quarter here.
var quarter = function (number) {
    return (number / 3);
};


if (quarter(12) % 3 === 0 ) {
  console.log("The statement is true");
} else {
  console.log("The statement is false");
}


#2

Are you familiar with what a quarter is?


#3

return (number / 4);

that's the right code...
A quarter is 1 of the 4. You did 1 of the 3...