PrepAway - Latest Free Exam Questions & Answers

Category: 1D0-435

Exam 1D0-435: JavaScript Fundamentals exam

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?


Page 6 of 24« First...45678...20...Last »