-
Three major components of JavaScript are
- DOM, BOM, ECMAScript
- LiveScript, Window, Navigator
- ECMAScript, Window, DOM
- LiveScript, DOM, BOM
-
What is the main function of JavaScript?
- To provide the business service
- To provide the web pages
- To display web pages
- To create the dynamic web pages
-
The language used to create the dynamic web pages is
- JavaScript
- Java
- C++
- Python
-
The core components of JavaScript are
- ECMAScript
- LiveScript
- DOM
- BOM
-
The component that maps out an entire page as a hierarchy of nodes is
- DOM
- BOM
- ECMAScript
- LiveScript
-
The component that deals with the browser window and frames is
- DOM
- BOM
- ECMAScript
- LiveScript
- About JavaScript, which statement is correct?
- JavaScript is a scripting language
- JavaScript is a programming language
- JavaScript is a markup language
- JavaScript is a database language
-
About function of JavaScript, which statement is NOT correct?
- JavaScript is an object-based language
- JavaScript is a strong typed scripting language
- JavaScript is a relatively safe scripting language
- JavaScript is an event driven scripting language
-
The tag that contains JavaScript code is
- <script>
- <javascript>
- <js>
- <scripting>
-
In script tag, which attribute is used to specify the source of script file
- type
- language
- script
- src
-
About the basic syntax of JavaScript, which statement is correct?
- JavaScript is case-sensitive
- A semicolon may be omitted in most cases when a line break exists
- Strict mode is not supported in JavaScript
- JavaScript can only be executed on client side
-
To get the input from the user, which function is correct?
- input()
- prompt()
- get()
- import()
-
To output information to the user on the console, which function is correct?
- write()
- prompt()
- log()
- alert()
-
The correct syntax to write multiple-line comment in JavaScript is
- //comment
- /*comment*/
- <!--comment-->
- /**comment*/
-
The correct syntax to write single-line comment in JavaScript is
- //comment
- /*comment*/
- <!--comment-->
- /**comment*/
-
Which way to use JavaScript is most suitable for code reuse
- Write in event handler
- External scripts
- Use the "link" tag
- Use the "script" tag
-
Where is the best place to insert a JavaScript?
- In the bottom of head section
- On the top of body section
- On the bottom of body section
- Any place in HTML
- External scripts can be used in any HTML file
- ECMAScript is a scripting language, which is core part of JavaScript
- JavaScript is used to decorate web pages
- JavaScript is used to describe the content of web pages
- Function "console.log()" display information on the console
- Like other scripting languages, JavaScript is also an interpreted language, which provides a very convenient
development process.
- JavaScript depends on the browser itself and has nothing to do with the operating environment.
- What are the components in JavaScript?
- What are the major functions of JavaScript?
- What are the major functions of BOM?
- What are the characteristics of JavaScript?
- Explain ways to use JavaScript?