Friday, 13 September 2013

Adding variables in javascript

Adding variables in javascript

I am looking for some help. I'd like to be able to add 2 variables and
then set one of the variables to a higher digit.
function gain_points() {
var total_points = parseInt(0)
var points_per_click = parseInt(1)
var points_per_second = parseInt(0)}
I'd like to be able to add total_points and points_per_click together, and
then for that to increase total_points.
Is this possible?

No comments:

Post a Comment