What I’m doing wrong with my atempt to use an arrow function here?
function setup() {
createCanvas(400, 400);
const x = 0;
const y = 10;
const t1 = x > y ? x : () => console.log("nono from arrow");
const t2 = x > y ? x : nono();
}
function nono() {
console.log("nono from func");
}
//this code logs: 'nono from func'