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?
parseInt(0)etc are redundant; you gain nothing over just saying0.parseIntis for when you have a string that you need to be a number instead, and want to make sure it's interpreted as an integer rather than a float.points_per_second?