This is the code i have written to add a number by 1 when key in any number: the problem is this part: When i key in 5, it gives me 51, rather than 6. How should i code it properly for getting it to add up when a value is keyed in at the prompt.
i have found a way to solve it. The prompt that you enter will gives you the text value and not integer value, that is why you cannot use it for calculation. You got to change it to an integer value using parseInt()