Google Apps Script: Format String

July 17, 2019
var output = Utilities.formatString('name=%s, score=%.02f', "Desmond", 81.2345);
Logger.log(output);

NOTE: To view logger output: Script Editor -> View -> Logs.

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.