1.
const b="1"+2-'3'
console.log(b)
结果为9;
考点:+和-是隐式转换。"1"+2 变成12
2.
let arr1=[1,2,3,4],i=0;
arr1[i++]=arr1[i++]*2;
console.log(arr1)
输出结果:[4,2,3,4]
3.
let a=2;
setTimeout(function(){
a--;
});
a++;
console.log(a)
结果:3
4.typeof 返回值 :number, object, string, boolean, function, undefined , Symbol
5.
let arr2=[1,2,3,4];
console.log(arr2.push(5)) (输出结果是 5 )
// console.log(arr2) (输出结果是 [1,2,3,4,5] )