# 13 / 33 Function Review

#1

Define the function multiply. It should take two parameters, x and y, and return the product.

Then call your function, passing in any two arguments.

// Accepts a number x as input and returns its square
var square = function (x) {
return x * x;
};

// Write the function multiply below
// It should take two parameters and return the product
var multiply = function (x, y) {
return x;
return y;
};

Oops, try again.
Your function multiply failed on inputs 1,0 where you returned 1 instead of 0

#2

Your multiply function should return the product (x * Y):

var multiply = function (x,y) {
return x * y;
};

#3

var square = function (x) {
return x * x;
};

var multiply = function (x,y) {
return multiply(x * y);
};

#4

// Accepts a number x as input and returns its square
var square = function (x) {
return x * x;
};

// Write the function multiply below
// It should take two parameters and return the product
var multiply = function (x,y){
return x * y;
};

multiply(5,3);