方法/函数的调用语句是否保持其返回值类似于变量名称保持值的方式?
例如:
function Jump(height) {
return height * 2;
}
Jump(3); //Is the call statement 'Jump(3)' equal the return value of 6 similar to
var x = 3; //how the variable 'x' is equal to the value of 3?
编辑:我通过将变量和函数命名为相同的名称而给人留下了错误的印象。我纯粹是使用该变量作为比较来了解如何保存返回值。下次我会更好地措辞/组织我的问题。