Here is the code snippet in question:
function setup() {
createCanvas(500, 500);
angleMode(DEGREES);
}
function draw() {
background(0);
translate(width/2, height/2);
let hour = hour();
}
There is an error on let hour = hour();
indicating that a semicolon should be used instead of 'hour'. The only solution I found was to write it as let; hour = hour();
, which eliminates the error but results in incorrect functionality. Any suggestions?