January 2018
Intermediate to advanced
678 pages
20h 16m
English
We’re not done with the improved Water Balloons web page. We still need to present its calculateWater function, which checks for valid input and calculates the number of gallons of water needed to fill up the balloons. But all that checking and calculating uses Java Script operators that haven’t been introduced, or they’ve been introduced but not described fully. So in this section, we’ll take a little side trip where you learn about those operators, and in the next section, we’ll use those operators in implementing the calculateWater function.
As you know, an if statement’s heading includes a condition with parentheses around the condition, like this:
if (condition) { ...Read now
Unlock full access