I am receving JSON from server and have to add or substract some numbers, but it does not work for adding, but for substracting it does. Any idea why?
data = {
point: {
x: '4.0',
y: '10.0'
}
}
startX = 10;
startY = 5;
newX= startX + data.point.x;
newY= startY - data.point.y;
console.log(newX, newY)