1. Promise.resolve().then(() => {
    2. console.log(0);
    3. return Promise.resolve(4);
    4. }).then((res) => {
    5. console.log(res)
    6. })
    7. Promise.resolve().then(() => {
    8. console.log(1);
    9. }).then(() => {
    10. console.log(2);
    11. }).then(() => {
    12. console.log(3);
    13. }).then(() => {
    14. console.log(5);
    15. }).then(() =>{
    16. console.log(6);
    17. })