1.下面在控制台的输出是什么??
console.log( [typeof null , null instanceof Object] )
2.下面在控制台的输出是什么??
[]["map"]+[1,2]
[]["a"]+[1,[2,3]]
[]['push'](1)
(![]+[])[+[]]
(![]+[])[+!![]]
++[[]][+[]] + [+[]]
[1 < 2 < 3, 3 < 2 < 1]
3.阅读以下代码,下面的输出是什么??
var a = 1,
b = c = 0;
function add(n){
return n=n+3;
}
y = add(a);
function add(n){
return n=n*5;
}
z = add(a);
console.log(y,z);
4.阅读以下代码,下面的输出是什么??
function showCase(value) {
switch(value) {
case 'A':
console.log('Case A');
break;
case 'B':
console.log('Case B');
break;
case undefined:
console.log('undefined');
break;
case new String('A'):
console.log( new String('A&