en.javascript.info/1-js/8-more-functions/07-settimeout-setinterval/1-output-numbers-100ms/task.md
Ilya Kantor f99574f53b up
2016-11-14 16:31:21 +03:00

260 B

importance: 5


Output every second

Write a function printNumbers(from, to) that outputs a number every second, starting from from and ending with two.

Make two variants of the solution.

  1. Using setInterval.
  2. Using recursive setTimeout.