Question: How much do you know about JavaScript? like the the example var price = 28.99; what mean this and the replay was this code
How much do you know about JavaScript?
like the the example "var price = 28.99;" what mean this and the replay was "this code Create a variable named price, and assign the value 28.99 to it." for all same what dose mean for JavaScript Code
| JavaScript Code | What does it Mean? Take a guess |
| var price = 28.99; | Create a variable named price, and assign the value 28.99 to it. |
| var discount = 10; |
|
| var total = |
|
| price - (price * (discount / 100)); |
|
| if (total > 25) { |
|
| freeShipping(); |
|
| } |
|
|
|
|
| var count = 10; |
|
| while (count > 0) { |
|
| juggle(); |
|
| count = count - 1; |
|
| } |
|
|
|
|
| var dog = {name: "Rover", weight: 35}; |
|
| if (dog.weight > 30) { |
|
| alert("WOOF WOOF"); |
|
| } else { |
|
| alert("woof woof"); |
|
| } |
|
|
|
|
| var circleRadius = 20; |
|
| var circleArea = |
|
| Math.PI * (circleRadius * circleRadius); |
|
|
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
