I am trying to come up with a simple script from https://editor.p5js.org that uses arrays, but when I define the array, it already assigned a value even though it is an empty array
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
let l=[];
console.log(l);
noLoop();
l.push(1);
}
and that is outputting
[1]