What will the alert method display if the user lives in Tennessee?

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?

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?

A.
1.0825 % of the order amount

B.
nothing

C.
The order amount only

D.
The order amount plus sales tax of 1.0825



Leave a Reply 0

Your email address will not be published. Required fields are marked *