how to make it wait 1 second in javascript code example Example: javascript wait 1 second setTimeout(() => {console.log('1 second finished!')}, 1000);