YourNameHere Posted October 11, 2009 Share Posted October 11, 2009 I am having trouble decrementing a number. here is my code: (Using jQuery) function subtract() { var pointsLeft = 35; pointsLeft =-- 1; $('#points').html(pointsLeft); } It's been a while since I used this operation so I am not sure what am I doing wrong? Link to comment https://forums.phpfreaks.com/topic/177337-solved-decerementing-a-number/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.