I am working with javascript and right now trying to sum(add/plus) two variables but right now instead of "addition"(plus) variables are "concate",Here is my current code
var first = this.value; // getting value "5"
var second =$("#earning").val(); // getting value "2"
var final_value =first + second;
M
y expected result is "7"(5+2) but its giving me "52",how can i fix this ?