Alex Z
Sep 20, 2022

--

Great post. I'm excited to not have to write "arr[arr.length -1]" another time in my life!

I do feel like top-level await is going to make it really easy to write very poor-performance javascript though.

If I stick "await getUserInfo()" in the middle of a long script, it could block a lot more code than it would if it was only inside the async function.

--

--

Alex Z
Alex Z

Written by Alex Z

Software Developer + Product Manager. Interested in Travel, Culture, Economics and the Internet. Join Medium: https://tinycode.medium.com/membership

No responses yet