fonction javascript settimeout lambda

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