Which of the following is the proper file extension for an external script file.
If a function is not a built in function, then it is a _________________ function.
Once the constructor is defined, you need to create new instances of the object. This process is called instantiation.
JavaScript is an event-driven programming language. Events trigger _________.
Placing / in front of a line of text, within the Script tags will result in ______________
The __________ method tests for the presence and position of a certain character.
Raul wants to display the current data and time in the Web page he just created.
Which JavaScript object can he use to access this information and display it on a Web page?
Which method of the String object would you use when writing the name of a chemical compound, such as “H20”?
What willthe following JavaScript code do when it runs?
<SCRIPT Language="JavaScript">
<!--
var d=new Date;
var h=d.getHours();
var msg="";
var targ;
if(h<12)
msg="<h1>Good Morning!</h1>";
else if(h>=12 && h<18)
msg="<h1>Good Afternoon!</h1>";
else
msg="<h1>Good Evening!<h1>";
document.write(msg);
/-->
</SCRIPT>
A way to exit a loop that would otherwise continue to execute is to use the break statement. If a condition is reached, the user is allowed to break out of the loop. You can use the break statement within the ______________.
Creating your object references as elements of an array rather than creating individual variables will make them easier to use for repetitive tasks?
The following are both advantages of creating user defined objects in JavaScript:
1. You can create sophisticated solutions with a minimum of coding.
2. You can represent programming constructs as objects (which allows you to code efficient schemes for evaluating forms or creating client-side databases).
__________ is used frequently in JavaScript to combine text strings, especially in conjunction with prompt() and alert().
Cookies are commonly used to store information about a user to maintain state.
A ____________ is an input object in the shape of a small square that can be selected, or checked on or off.
Which one of the following is an action that can be performed by an object?
The first character of a variable must be a letter or an underscore, but subsequent characters can be letters, numbers, and the underscore character.
The window object is subordinate to the document object in the JavaScript hierarchy.
Ann inadvertently deleted her cookies.txt file.
How will this affect her browsing experience?
Chiyo wants to open a new window with JavaScript, but she repeatedly receives an error message. She reviews her code, as shown: open ("http://www.prolific.com ", "Pro Window" , "toolbar = 1 ,location = 1 ,menubar = 1 , scrollbars = 1 ,status = 1 ,resizable = 1"); Which one of the following choices shows how Chiyo should rewrite this line of code so that no errors result when it is executed?
Tanja needs to examine only a small portion of a string.
Which JavaScript method should she use to perform this task?
What is the JavaScript term for a string value that represents the URL of the document from which the current document was accessed?
If you want to declare a variable that can be accessed by more than one function or script block in your program, you will need to declare the variable ___________________.
Which one of the following is a descriptive characteristic of an object, such as color, width or height?
In JavaScript, the operator =, is an assignment operator. It will __________________