method calls doubling everytime
this demonstrates a 2^x call to the function redGame() where x = ordinal count of click first click gives one alert 2^0 second gives two alerts 2^1 third gives four alerts 2^3
HTML
<div id="button-again"></div>
CSS
#button-again {
cursor: pointer;
width: 150px;
height: 75px;
background-color: #fb6800;
}
JavaScript
$(function(){
redGame();
function redGame()
{
// $('#button-again').click(function(){
alert("called");
redGame();
// });
}
});