I was wondering if there was an easy way to display the timer on the screen as a countdown. I want to give participants only one minute for example to do a task, but I want them to be able to see and keep track of the seconds as they count down.
newVar("finishTime").set(v=>Date.now()+90000) // 90000 = 90s = 1min30s
// This Timer element will execute a callback after 1s
.test.is(v=>v>0) // Positive value means current time still below finish time
// Transform the Var element into an appropriately formatted string
getText("countDown").text(getVar("difference")) // Update the Text element
// Relaunch the timer to update again in 1s
).start() // Don't forget to start the timer initially