Quarters


#1

what does it mean by define quarter?


#2

The word define means to write out a function or declare and initialize an object.

var quarter;

The above declares a variable, quarter, but does not define it. To define it, we give it a value or expression. An anonymous function is an expression, so we can write,

quarter = function () {};

Now quarter refers to an anonymous function object. We still need to define the inner workings of the function, and what parameter it may take.

The assignment is to define a function that will return one quarter of the number passed in to it. That means our parameter (argument) will be a number and the return value will be a quotient, that number divided by 4.

See how you make out with this, and post back if you have more questions.