下列JavaScript语句中能正确执行的是______。
(A)x=10,document.write(x+y);
(B)var sum=x+y;
(C)var x=1;if (x==1) {alert("Hello World! ");}
(D)var x=1;if (x==1) then {alert("Hello World! " );}
参考答案
继续答题:下一题
(A)x=10,document.write(x+y);
(B)var sum=x+y;
(C)var x=1;if (x==1) {alert("Hello World! ");}
(D)var x=1;if (x==1) then {alert("Hello World! " );}