javaScript settimeout лямбда функция

// param1: annonymous function; param 2: time in ms
window.setTimeout(() => {
  console.log('1 second passed!');
}, 1000);
Coder Cuttlefish