let p = new Promise(function(resolve, reject){ return setTimeout(function(){ return [1,2,3] }, 1000) }) p.then(function(response){ console.log(response) })