Question: 2 . ( 1 mark ) cupSize is the name ( or identifier ) of a variable in my JavaScript program, and clicking on any
mark cupSize is the name or identifier of a variable in my JavaScript program, and clicking on any of the buttons labeled "Short," "Tall," or "Grande" causes that variable to be loaded with a different value. A JavaScript variable should be declared in a var statement before it is used. Note the line numbers that your editor puts down the left side of the code in its editing window. Which line is the variable cupSize declared onHint: Look for the "var" keyword in front of the identifier "cupSize."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
