-2

is timer not a part of Ecma Standard? for example

setTimeout, setInterval
SuperStormer
  • 4,997
  • 5
  • 25
  • 35
SUNTOPO
  • 11
  • 1
  • setTimeout, setInterval should be the browser web api. – Kevin Zhang Dec 29 '20 at 02:41
  • Please, you're encouraged to first google or search for the answers before asking the question here. This question was already answered in here: https://stackoverflow.com/questions/8852198/settimeout-if-not-defined-in-ecmascript-spec-where-can-i-learn-how-it-works – spersico Dec 29 '20 at 02:57

1 Answers1

0

That's correct. It does not exist in the official specification. One could construct a valid ECMAScript interpreter that does not know of setTimeout or setInterval.

However, it does exist in the HTML standard.

CertainPerformance
  • 356,069
  • 52
  • 309
  • 320