I need to add up two numbers input by the user. To do that, I create two input fields, retrieve values from them , using .val(), in two separate variables and then add them.
Number() is the function you want "123a" returns NAN
parseInt() truncates trailing letters "123a" returns 123