我通常已经理解了这个东西,因为我正在为一个非主要的课程进行网络编程,并且猜测我对于被要求做的事情只是有点困惑。 。Javascript-乘以2个号码和返回号码
我告知“编写命名函数‘接受2个参数正片叠底’的功能将这样声明:
function MULTIPLY(parameter1, parameter2){
//The parameter names can be whatever you want
//Your code goes here
};
我已经写了这是我的代码:
function MULTIPLY (price, shipping) {
return price*shipping;
enter code here
product=number1*number2;
//return the result
return total;
您的代码缺少'}'结尾。您还在StackOverflow上的左'在这里输入代码'。请显示你实际写的内容。 – Barmar 2014-10-21 21:07:38