1D0-435 無料問題集「CIW JAVA XCRIPT FUNDAMENTALS」
Sven wants to open a new window with JavaScript, be he repeatedly receives an error message. He reviews his 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 Sven should rewrite this line of code so that no errors result when it is executed?
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 Sven should rewrite this line of code so that no errors result when it is executed?
正解:C
解答を投票する
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
解答を投票する