Time delay within a loop?

Thanks for your response. I have tried setInterval(), but got the same result.
I’m guessing that my formatting is incorrect? I’m still stuck in BBC basic if/then/next/goto !

let min = $w ( ‘#myText’ ). text
//setInterval(() => {
$w ( ‘#myText’ ). text = “” + min
for ( let min = 0 ; min < 10.01 ; min ++){
setInterval (() => {
$w ( ‘#myText’ ). text = “” + min
console . log ( min )
}
, 6000 )