combine it with previous line `value = value * 10 + (this.arr[i].charCodeAt(0) - charCodeOfZero);`