[ad_1]
parseInt(number, 10)= b;
So you are saying to assigning b to parseInt. You have it reversed.
var b = parseInt(number, 10)
You have the problem in multiple places.
[ad_2]
solved I get an invalid left hand side in assignment with my code [closed]