I have these variables i am trying to add in javascript
discountedValue = theGrandTotalNumber + getdigits(theDiscount);
however instead of adding, its concatenating. How do i get it to add?
I have these variables i am trying to add in javascript
discountedValue = theGrandTotalNumber + getdigits(theDiscount);
however instead of adding, its concatenating. How do i get it to add?
"...men are that they might have joy."
Nephi
Found that javascript is seeing these vars as string and not numbers . Therefore i have to parseInt to make them numbers.
"...men are that they might have joy."
Nephi