Adding two values is not giving me the expected result.
For instance, 1 + 1 = 2
, but instead I am obtaining 11
.
This is my code:
this.newpoint = this.data.point + 1;
console.log(this.newpoint);
The value of this.data.point is 0, but it might be in string format, could this be the issue?