how to do subtraction in javascript

Solutions on MaxInterview for how to do subtraction in javascript by the best coders in the world

showing results for - "how to do subtraction in javascript"
Assia
19 Oct 2019
1//To subtract in Java script, you have to put an subtraction symbol '-' between them. If you have stored two numbers in variables, just put an subtraction symbol between the variable names.
2//For example:
3var a = 6
4var b = 5
5var c = a-b
6var d = 6-5
7
8Bot.send (c)/ print (c)// or whatever you use to get output
9Bot.send (d)/ print (d)// or whatever you use to get output
10
11//output will be: 1, 1