Consider the following Code:
<script>
var state = "";
var orderAmount = 50;
state = prompt("Which state do you live in?","");
if (state.toUpperCase() == "CA") {
alert("Your total owed is: " + (orderAmount * 1.0825));
} else {
alert("Your total owed is:" + orderAmount);
}
</script>
What will the alert method display if the user lives in Tennessee?
JavaScript offer a predefined method for determining when you should use custom objects instead of arrays for your programs.
Which one of the following is a descriptive characteristic of an object, such as color, width or height?
Which of the following is the term for a single line of JavaScript code that is executed in a script or program?
Can the practice of calling JavaScript functions from framesets be extended to calling them from different browser windows?
Wilhelm is writing a constructor in JavaScript. He uses the word "this" when referring to the properties and methods in his object parameters and functions. Why?
Which property of the navigator object identifies the operating system for which the browser was compiled?
Which property of the location object specifies whether HTTP or FTP is being used?
PDF + Testing Engine |
---|
$66 |
Testing Engine |
---|
$50 |
PDF (Q&A) |
---|
$42 |
CIW Free Exams |
---|
|