输出"hello,world"正确的javascript语法是:
A. document.write("hello,world")
B. "hello,world"
C. response.write("hello,world")
D. ("hello,world")
查看答案
下列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++)
JS语句var a1=10;var a2=20;alert("a1+a2="+a1+a2)显示结果为:
A. a1+a2=30
B. a1+a2=1020
C. 30
D. 1020
document.write(Number("001")+"");程序运行结果是?
A. 0
B. 1
C. 001
D. NaN
javascript中用户自定义函数使用的关键字是?
A. new
B. this
C. function
D. fn