String Interpolation With Integers And Sprintf
let red = 64;
let green = 256;
let blue = 128;
let alpha = 1;
let color =
Printf.sprintf("rbga(%i, %i, %i, %i)", red, green, blue, alpha);
Js.log(color);Last updated
let red = 64;
let green = 256;
let blue = 128;
let alpha = 1;
let color =
Printf.sprintf("rbga(%i, %i, %i, %i)", red, green, blue, alpha);
Js.log(color);Last updated