单选题 有语句“var x=0;while( ) x+=2;”,要使while循环体执行10次,空白处的循环判定式应写为

A、 x<10
B、 x<=10
C、 x<20
D、 x<=20
下载APP答题
由4l***ds提供 分享 举报 纠错

相关试题

单选题 JS语句var a1=10;var a2=20;alert(“a1+a2=”+a1+a2);显示的结果为()

A、 a1+a2=1020
B、 a1+a2=30
C、 a1+a2=a1+a2
D、 a1+a2=a1

单选题 下列的哪一个表达式将返回false()

A、 !(3<=1)
B、 (4>=4)&&(5<=2)
C、 (“a”==”a”)&&(“c”!=”d”)
D、 (2<3)||(3<2)

单选题 下列JavaScript的循环语句中正确的是()

A、 if(i<10;i++)
B、 for(i=0;i<10)
C、 for i=1 to 10
D、 for(i=0;i<=10;i++)

单选题 将字串s中的所有字母变为小写字母的方法是()

A、 s.toSmallCase()
B、 s.toLowerCase()
C、 s.toUpperCase()
D、 s.toUpperChars()

单选题 向页面输出“Hello World”的正确javascript语法是()

A、 document.write("Hello World")
B、 "Hello World"
C、 response.write("Hello World")
D、 ("Hello World")

单选题 JS特性不包括()

A、 解释性
B、 用于客户端
C、 基于对象
D、 面向对象

单选题 下列JS的判断语句中正确的是()

A、 if(i==0)
B、 if(i=0)
C、 if i==0 then
D、 if i=0 then

单选题 下列选项中,不是网页中的事件是()

A、 onclick
B、 onmouseover
C、 onsubmit
D、 onpressbutton