代碼1沒有變量的函數調用...所以我的問題在這裏....返回值(13)將放在哪裏?由於不存在任何在代碼爲函數調用變量1.代碼2具有一個變量var thevariableithink其中它是其中的答案13將被放置在自8 + 5 = 13。Javascript。返回值(13)將放入哪裏?
code 1:
var addFiveplease = function(thenumberithink) {
return thenumberithink + 5;
};
//doesn't have any variable so there's no place where the 13 will be stored.
addFiveplease(8)
//VS
code 2:
var addFiveplease = function(thenumberithink) {
return thenumberithink + 5;
};
//has variable var thevariableithink where 13 will be stored.
var thevariableithink = addFiveplease(8)
確實還返回日誌字符串到控制檯?如果是...爲什麼? co'z我看到了這個... http://hastebin.com/omufosesof.coffee –