First Class Functions Javascript

function square (num) {
	return num * num;
}

function displaySquare(fn) {
	console.log("Square is " + fn(5));
}

displaySquare(square); // function square is passed in another function displaySquare