const promise = new Promise(function(resolve, reject) {
setTimeout(function() {
resolve("done");
}, 1000);
});
promise
.then(function(value) {
console.log(typeof value);
return value;
})
.then(function(result) {
console.log(result);
});