getting started
def one_rep_max(weight, reps):
return weight * (1 + reps / 30)
("#button").click(function(){ var weight = parseInt($('#weight').val()); var reps = parseInt($('#reps').val()); var max = weight * (1 + (reps/30)); $('#demo').html("If you can lift " + weight + " for " + reps + " reps then you have an estimated max of " + max + " !"); });