Program

var ferris_count = 0;

$("#ferris_button").click(function(){

ferris_count = ferris_count + 1;

alert("Ferris wheel count: " + ferris_count);

}

...

<button type="button" id="ferris_button">Count</button>

Memory

ferris_count

0

Output

Click the Count button to run its click() code.