Question: 2 . ( 1 mark ) cupSize is the name ( or identifier ) of a variable in my JavaScript program, and clicking on any

2.(1 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 on?(Hint: 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!