题目内容

continue语句不能用在下列哪些语句中?

A. while
B. dowhile
C. for
D. if

查看答案
更多问题

当程序中出现 while(true)的时候,运行情况是?

A. 程序陷入死循环
B. 程序执行一次退出
C. 程序无法执行
D. 程序执行一定次数后自动退出

for(var i=1;i<=10;i++){ if(i==6) { break; }document.write(i); }程序的运行结果是?

A. 12345
B. 123456
C. false
D. true

switch语句在比较值时使用的操作符是?

A. 全等操作符
B. 或操作符
C. 与操作符
D. 赋值操作符

输出"hello,world"正确的javascript语法是:

A. document.write("hello,world")
B. "hello,world"
C. response.write("hello,world")
D. ("hello,world")

答案查题题库