更多"[单选题](单选题)以下代码的运行结果是(),var a='12px'"的相关试题:
[单选题]
(单选题)以下代码的运行结果是(),var a="12px";var b=3;console.log(a+b);console.log(Number(a));
A.15px/12
B.12px3/12
C.15px/NaN
D.12px3/NaN
[单选题]【单选题】
(单选题)以下代码的运行结果是(),
Var x=true+1;
Var y=true+"1";
Var z=true+1+"1";
Console.log(x+","+y+","+z);
A."true1","true1","true2"
B.2,"true1","true11"
C.2,2,3
D.2,"true1","21"
[单选题]
(单选题)以下代码的运行结果是(),
Var x=true+1;
Var y=true+"1";
Var z=true+1+"1";
Console.log(x+","+y+","+z);
A."true1","true1","true2"
B.2,"true1","true11"
C.2,2,3
D.2,"true1","21"
[单选题]
(单选题)以下代码的运行结果是(),
Var scope="global";
Function checkscope(){
Scope="local";
Myscope="local";
Return [scope,myscope]
}
Console.log(checkscope());
Console.log(scope);
Console.log(myscope);
A.先后输出值为["global","local"],global,local
B.先后输出值为["local","local"],local,local
C.先后输出值为["local","global"],global,local
D.先后输出值为["global","global"],local,local
[单选题]【单选题】
(单选题)以下代码的运行结果是(),var a="12px";var b=3;console.log(a+b);console.log(Number(a));
A.15px/12
B.12px3/12
C.15px/NaN
D.12px3/NaN
[单选题]【单选题】
(单选题)以下代码的运行结果是(),
Var scope="global";
Function checkscope(){
Scope="local";
Myscope="local";
Return [scope,myscope]
}
Console.log(checkscope());
Console.log(scope);
Console.log(myscope);
A.先后输出值为["global","local"],global,local
B.先后输出值为["local","local"],local,local
C.先后输出值为["local","global"],global,local
D.先后输出值为["global","global"],local,local
[单选题]
(单选题)以下代码的输出结果是()
Var f = function g() {
Return 23;
};
Typeof g();
A."number"
B."undefined"
C."function"
D.Error
[单选题]
(单选题)以下代码的输出结果是(),
Var scope="global scope";
Function checkscope(){
Var scope="local scope";
Function nested(){
Var scope="nested scope";
Return scope;
}
Return nested();
}
Console.log(checkscope());
A."global scope"
B."local scope"
C."nested scope"
D.null
[单选题]【单选题】
(单选题)以下代码的输出结果是(),
Var scope="global scope";
Function checkscope(){
Var scope="local scope";
Function nested(){
Var scope="nested scope";
Return scope;
}
Return nested();
}
Console.log(checkscope());
A."global scope"
B."local scope"
C."nested scope"
D.null
[单选题]【单选题】
(单选题)以下代码的输出结果是()
Var f = function g() {
Return 23;
};
Typeof g();
A."number"
B."undefined"
C."function"
D.Error
[单选题]
(单选题)以下代码的输出结果是(),var i=1,b=++i,c=i++;console.log(i+","+b+","+c);
A.1,2,3
B.2,2,3
C.1,2,2
D.3,2,2
[单选题]【单选题】
(单选题)以下代码的输出结果是(),var i=1,b=++i,c=i++;console.log(i+","+b+","+c);
A.1,2,3
B.2,2,3
C.1,2,2
D.3,2,2
[单选题]
(单选题)下面运行的结果是()
Var v1 = []
Var v2 = {};
Var v3 = {};
Function foo(v1, v2, v3)
{
V1 = [1];
V2 = [2];
V3 = {a:3}
}
Foo(v1, v2, v3);
Alert (v1);
Alert (v2);
Alert (v3.a);
A.空白
[object Object]
Undefined
B.1
2
3
C.空白
2
3
D.空白
2
Undefined
[单选题]
(单选题)以下表达式的运行结果是()
Var arr = [0,1,2];
Arr[10] = 10;
Arr.filter(function(x){return x === undefined});
A.[undefined x 7]
B.[0,1,2,10]
C.[]
D.[undefined]
[单选题]【单选题】
(单选题)以下表达式的运行结果是()
Var arr = [0,1,2];
Arr[10] = 10;
Arr.filter(function(x){return x === undefined});
A.[undefined x 7]
B.[0,1,2,10]
C.[]
D.[undefined]
[单选题]分析下面的JavaScript代码段,输出结果是( )
var mystring="I am a student";
a=mystring.charAt(9);
document.write(a);
A.I am a st
B.U
C.Udent
D.T
[单选题]分析下面的 Javascript 代码段,输出结果是()
var mystring=”I am a student”;
var a=mystring.substring(9,13);
document.write(a);
A.stud
B.tuden
C.uden
D.udent
[单选题]分析下面的 Javascript 代码段,输出结果是()
var s1=parseInt(“101 中学”);
document.write(s1);
A.NaN
B.101 中学
C.101
D.出现脚本错误