title: Display a message on the console with a delay
body: <p>I have this code:</p>
  <pre><code>function printDelay(j) {
    if (j != 0) {
      setTimeout(() =&gt; {
        console.log(j);
      }, 1000);
      j--;
      print(j);
    } else {
      console.log(&quot;END!&quot;);
    }
  }
  
  printDelay(5);
  </code></pre>
  <p>Why it doesn't print the numbers 5,4,3,2,1 with a delay of 1 second?</p>