How to check the difference between numeric variables in javascript? The question seems to be elementary, but for some reason there are no considerations. I will explain exactly what you need.
If the numbers are 10 and 20 , then the difference is 10 .
If the numbers are -5 and 3 , then the difference is 8 .
If the numbers are -13 and -15 , then the difference is 2 .
Tell me the algorithm of the function, which if I give two numbers, then the difference between them will return to me.
a – band strip the result of the mark. - Sergiks