xxxxxxxxxx
29
function setup() {
createCanvas(400, 400);
let var1 = 2; // type = number (integers)
let var2 = 4.675; // type = number (floating point numbers)
let var3 = "hello"; // type = string
let var4 = mouseX;
let var5 = true; // type = boolean
let var6 = 2 + 7; // 9
let var7 = 2 + 3; // 5
let var8 = (var6 == var7);
// the console.log() function prints its argument to the console
//console.log("i am happy to be in the console :)")
// the typeof() function gives us information on the type of variable
//console.log(typeof(var7));
console.log(var8);
}
function draw() {
background(220);
}