Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想弄清楚这段代码会产生什么?我假设数组“t”已经定义并填充。
var j, s; for (var j = 0; j < 34; j++){ s += (t[j] * 4) / 5; }
任何帮助表示赞赏!
s将是NaN因为它没有用数值初始化。undefined + x(其中x是一个数字)总是NaN.
s
NaN
undefined + x
x