I'm having trouble making an account using javascript:
javascript
num1 = $("#num1").val(); // exemplo 2
num2 = $("#num2").val(); // exemplo 50
result = num1+num2;
This code results in 250 instead of 52
It looks like it's concatenating instead of adding.
How to fix this error?