Edit in JSFiddle

setTimeout(function() {
  console.log("Código sendo executado após 3 segundos!")
}, 3000)