Ask Your Question

Revision history [back]

To divide a variable by a number in Apps Script, you can use the '/' operator. For example, to divide the variable 'num' by 2, you can write:

var num = 10;
var result = num / 2;

In this case, the value of 'result' would be 5, which is the result of dividing 10 by 2.