Counter
by cliftonyeo
HTML
<button>Click</button>
<div id="output"></div>
CSS
#output {
font-size:50px;
}
JavaScript
var count = 0;
$('button').click(function(){
doCount();
writeOutput();
});
function writeOutput() {
$('#output').html(count);
}
function doCount () {
count++;
}