var sum = a + b //valid even without a semicolon - not recommended var diff = a - b; //valid - preferred
比如下面代码:
"use strict" function f(a, b) { return a | b ; } console.log(f(2, 1));
所以,我们还是不要让解析器猜测我们的用意,毕竟解析器不是人工智能的:
正确写法:
原文地址:http://blog.csdn.net/doctor_who2004/article/details/46670137