1D0-435 無料問題集「CIW JAVA XCRIPT FUNDAMENTALS」
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?
<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?
正解:A
解答を投票する
Nadir wants to be able to send the user to a previous page in the history list. Nadir's site includes two information pages before the entrance to the site. Therefore, users who do not want to enter his Web site should go back at least three previous pages. Nadir uses the following command: history.back(3);. This command does not execute properly when Nadir tests it. How should he rewrite this line of code to ensure that this JavaScript command executes properly?
正解:B
解答を投票する