First input worthy cases, click add or subtract, num value as a string of things will to string concatenation, this how to return a responsibility
CodePudding user response:
Enclosing setData ({Num: parseInt (this) data) num) + parseInt (opertion)
})
Silly, type conversion here ok
CodePudding user response:
This treatment with JS: parseInt (" 10 ")