E-Commerce- 8.04 JavaScript Questions
Block comments begin with /* and end with _____.
*/
How do you indicate single line comments in JavaScript code?
//
You create line comments in JavaScript code by adding _____ to a line you want to use a comment.
//
Inside which HTML element do we put the JavaScript?
<script>
Which best describes JavaScript?
An object-oriented scripting language
Scriping code in an HTML document is located _____.
Between the <script> . . . </script> tag pairs
The version of JavaScript that is the format available to HTML pages in a web browser is called _____ JavaScript.
Client-side
Which BEST describes JavaScript?
Code that can be written directly into HTML pages to allow interaction between the page and the viewer
How are JavaScript code sections executed in an HTML document?
Each JavaScript code section is executed in the order in which it appears.
23Store is a valid variable name.
False
The term _____ language is used to refer to interpreted languages that run from within a Web browser.
Scripting
You have received an error message which tells you that your error is in line 15. What does this mean?
This error exists on the 15th line from where the HTML begins
A variable is a container for information that you want to store.
True
JavaScript is case sensitive.
True
Which line of JavaScript code displays a simple message dialog box with an OK button?
alert( )
JavaScript _____ of an HTML document.
can be placed in either the <head> or <body> sections
The <script> tag _____.
can be used with both JavaScript and VBScript
he JavaScript object that represents the contents of a browser's windows is called the _____ object.
document
What is the correct JavaScript syntax to write "Hello World"?
document.write("Hello World")
Executing the various statements and procedures of a program in the correct order to produce the desired results is called _____.
logic
What JavaScript event should John use to cause a message to display when a viewer clicks on a rollover on his website?
on click
Which symbol is used to combine text and commands?
plus
A(n) _____ refers to programming code and data that can be treated as an individual unit or component.
procedure
You get a JavaScript error message. After carefully reviewing the code, you determine that you have used an incorrect command. What type of error would this be?
run-time
Which character acts as a statement terminator?
semi-colon
The rules of a programming language are known as its _____.
syntax
You get a JavaScript error message. After carefully reviewing the code, you determine that you have misspelled a command. What type of error would this be?
syntax
How do you put a message in the browser's status bar?
window.status = "put your message here"
Which statement will display text on a web page using JavaScript?
writeIn( )
With JavaScript, new text is created on a Web page using the write() method or the _____ method.
writeln()