Solution Review: Place Order
Now, let's discuss the solution to the "Place Order" challenge.
We'll cover the following...
We'll cover the following...
Task 1
Let’s discuss the solution to the challenge presented in the previous lesson.
Solution
Explanation
-
In line 1, the ternary operator is used to check the condition if the
amountis less than 20 or not. Here, the default value ofshippingdepends on the ...