单选题 我们可以在下列哪个 HTML 元素中放置 Javascript 代码?
A、 <script>
B、 <javascript>
C、 <js>
D、 <scripting>
单选题 页面里允许有几个<script>元素?
A、 0
B、 仅1个
C、 仅2个
D、 任意数量
单选题 下面可以作为客户端脚本语言的是( )。
A、 java
B、 c#
C、 PHP
D、 JavaScript
单选题 页面上输出 "Hello World" 的正确 Javascript 语法是?
A、 ("Hello World")
B、 "Hello World"
C、 response.write("Hello World")
D、 document.write("Hello World")
单选题 引入外部脚本文件时,以下哪项是脚本元素的必选属性。
A、 async
B、 defer
C、 src
D、 type
单选题 如何在 JavaScript 中添加注释?
A、 ' This is a comment
B、 <!--This is a comment-->
C、 //This is a comment
D、 ~This is a comment~
单选题 下面代码输出正确的是
parseInt(3, 8)
parseInt(3, 2)
parseInt(3, 0)
A、3, 3, NaN
B、other
C、3, NaN, NaN
D、3, 3, 3
单选题 可插入多行注释的 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-->