xxxxxxxxxx
19
function setup() {
createCanvas(800, 300);
console.log(10+2*4);
console.log((10+2)*4);
console.log (10+(2*4));
}
function draw() {
background(220);
// order of operations
// parenthesis come first
//then the multiplication and division
//and then addition and subtractoin
var xoffset = 250;
ellipse (100+ xoffset, 200,50,50);
ellipse (200+ xoffset,200, 50,50);
rect (50+ xoffset, 160, 200,20);
}