定义一个函数,用来计算盒子的面积: function getArea(width,height){//width 和height就是形参 return width*height; } getArea(3,5);//3和5就是实参。