Just wondering the difference in these 2 functions...
function getArea(width, height) {
return width * height;
}
function getArea(width, height) {
var area = width * height;
return area;
}
I guess my question is, what is the point in the second example by storing the parameters in a variable?