Question: how to subtract two numbers in javascript?
Answer: You subtract them in JS exactly as you subtract them in Math. And that means: var result = num1 - num2; // get the result by subtracting num2 from num1.