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