codecamp

JavaScript 函数使用返回值进行赋值

// 举例
var changed = 0;


function change(num) {
return (num + 5) / 3;
}


changed = change(10);


// Setup
var processed = 0;


function process(num) {
return (num + 3) / 5;
}


// Only change code below this line
processed=process(7);
JavaScript 函数使用return返回值
JavaScript 队列
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定