what is role of setup function in js code example
Example: what does function setup() do in javascript
function setup() {
create canvas(400, 400)
}
function draw(){
if(mouseIsPressed){
fill(0);
}else{
fill(255)
}
ellipse(mouseX, mouseY, 80, 80)
}