单项选择题
如何把 7.25 四舍五入为最接近的整数?()
A. round(7.25)
B. rnd(7.25)
C. Math.rnd(7.25)
D. Math.round(7.25)
点击查看答案
相关考题
-
单项选择题
可插入多行注释的JavaScript语法是?()
A. /*This comment has more than one line*/
B. //This comment has more than one line//
C. <!--This comment has more than one line--> -
单项选择题
如何在JavaScript中添加注释?()
A. ' This is a comment
B. <!--This is a comment-->
C. //This is a comment -
单项选择题
for循环如何开始?()
A. for (i <= 5; i++)
B. for (i = 0; i <= 5; i++)
C. for (i = 0; i <= 5)
D. for i = 1 to 5
