xxxxxxxxxx
14
let x = []; // Declare the array
function setup() {
createCanvas(200, 200);
x[0] = 12; // Assign the first value
x[1] = 2; // Assign the second value
console.log('x', x);
}
// https://editor.p5js.org/jht1493/sketches/FghpP9uDR
// Ex_11_04 Declare and Assign an Array
// https://github.com/lmccart/gswp5.js-code/blob/master/11_Arrays/Ex_11_04.js