var balanc = 20;
var gamebalanc = 3819430;
var balanc = Number(balanc);
var gamebalanc = Number(gamebalanc);
var bits = document.getElementById("bits").value;
var stav = document.getElementById("stav").value;
var bits = +document.getElementById("bits").value;
var stav = +document.getElementById("stav").value;
var newuserbal = balanc + resbits;
var newgamebal = gamebalanc - resbits;
balanc += resbits;
gamebalanc -= resbits;
и оперировать balanc и gamebalanc.
|