JSFiddle - React, Tailwind, and code Playground
by Juan Muñoz
HTML
tabla_1.append(fila_1);
JavaScript
$(document).ready(function (){
what1().then(() => {
console.log("Termina1")
what2().then( () => {
console.log("Termina2")
what3().then( () => {
console.log("Termina3")
});
})
})
})
function what1() {
return new Promise(resolve => {
setTimeout(() => {
console.log("Hola1")
resolve('lurks');
}, 300);
});
}
function what2() {
return new Promise(resolve => {
setTimeout(() => {
console.log("Hola2")
resolve('lurks');
}, 3300);
});
}
function what3() {
return new Promise(resolve => {
setTimeout(() => {
console.log("Hola3")
resolve('lurks');
},1300);
});
}