Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@musician I thought it was impossible to use await outside. Also inner await is unnecessary
-
musician9426y@melezorus34 it needs to be inside an async function. But hows the inner await useless? Try it out in the browser.
-
@musician I mean, if you use it inside the paranthesis, it will wait the inside statement to complete. Then the parantheses get the value and you wait the value again. You lose a tick at there. It is longer than you can think actually.
-
musician9426y@melezorus34 maybe i misunderstand you but you need 2 await since fetch returns a promise
One for the fetch and one for the .json() -
fives10596yAnyone who has written JavaScript industrially and thinks the left side is more readable/better is very mistaken...
#10YearsChallenge 😂
joke/meme