setTimeout?

Brodie Matthews's icon

Hey just going through some basics rn, wondering if its possible to use setTimeout in the jsui?

// iv got some basic code with x assigning arguments, id like to run a new function>>

function newcolor(){
setTimeout(setrect,1000, arguments[0] = random(), arguments[1] = random(), arguments[2] = random());

Brodie Matthews's icon

i was told task is used in js.