Hello, World! I'm jzombie, a passionate software developer with a knack for problem-solving and a love for open-source. I believe in the power of code to change the world and make our lives easier.
When you write asynchronous code, you can write in any direction:
For example, bottom up:
letmessage=''awaitPromise.all([newPromise(resolve=>setTimeout(()=>{message+='world';resolve()},200)),newPromise(resolve=>setTimeout(()=>{message+='hello ';resolve()},100))])console.log(message)// Hello world
I am a Self Thaught Front End Developer ReactJS contributing to opensource projects make fun in writing blogs and opensourcing building websites and selling
exactly. that is what I'm talking about .as I mentioned in the article :
" Note that this code only makes sense for this example, and based on your programming language and work environment, you should make your own interpretation of this example "
It's all about "thinking" about your code and the order depends on your environment. are we in the same page?
Hello, World! I'm jzombie, a passionate software developer with a knack for problem-solving and a love for open-source. I believe in the power of code to change the world and make our lives easier.
When you write asynchronous code, you can write in any direction:
For example, bottom up:
Great
exactly. that is what I'm talking about .as I mentioned in the article :
" Note that this code only makes sense for this example, and based on your programming language and work environment, you should make your own interpretation of this example "
It's all about "thinking" about your code and the order depends on your environment. are we in the same page?
Yep, absolutely.