showing results for - "how to do division in javascript"
Rafaela
18 Apr 2016
1//To add in Java script, you have to put an forward slash symbol '/' between them. If you have stored two numbers in variables, just put a forward slash symbol between the variable names.
2//For example:
3var a = 30
4var b = 6
5var c = a/b
6var d = 30/6
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//output will be: 5, 5
11//Don't forget to upvote this answer if you found it helpful. It will help others too!