Question: After the if statement that follows is executed, what will the value of discountAmount be? var discountAmount; var orderTotal = 200; if (orderTotal > 200)
After the if statement that follows is executed, what will the value of discountAmount be?
var discountAmount; var orderTotal = 200; if (orderTotal > 200) { discountAmount = orderTotal * .3; } else if (orderTotal > 100) { discountAmount = orderTotal * .2; } else { discountAmount = orderTotal * .1; }
Question 24 options:
| |||
| |||
| |||
|
Which of the following statements is false? A JavaScript variable
Question 22 options:
| |||
| |||
| |||
|
When we talk about an object's property, we are describing...
Question 21 options:
| |||
| |||
| |||
|
Which object represents a web page?
Question 20 options:
| |||
| |||
| |||
|
In the following statement, the function show() is executed first.
$(".children").append("
Smart!
").show()Question 9 options:
| True | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| False
Javascript arrays must contain items of the same type (ex: all numbers or all strings). Question 10 options:
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
