Working on a Pixl,js with firmware 2v04 .
Sometimes parameter for function are stored in arrays and apply is used to convert array to parameter.
var numbers = [0,3,5,9,4];
// output is 9
Try to use this for g.drawString()
var p = ["Hello", 10, 10];
Screen does not show "Hello".
Is this the correct syntax to use it in class Graphics?
© Espruino, powered by microcosm.
Report a problem