I am learning promises , and I was doing some examples.
This is my code in which I intend to show.
the following: // one, two, three, four but instead shows asynchronously // one, four, two, three
let promise =new Promise(function(resolve,reject){
console.log("uno");
resolve();
});
promise.then(function(){
console.log("dos");
console.log("tres");
});
console.log("cuatro");