DEV Community

Cover image for Top level Await is AWESOME!! šŸ˜

Top level Await is AWESOME!! šŸ˜

PuruVJ on December 28, 2020

Read on my blog in dark or midday mode Top Level Await is literally awesome. It's the GOAT!!(Greatest of All Time, in case you couldn't guess šŸ˜‰)...
Collapse
 
devdufutur profile image
Rudy NappĆ©e • Edited

If you want to limit parenthesis and brackets :

async function init() { /*...*/ }

init();
Enter fullscreen mode Exit fullscreen mode

A New Hope

I disagree, it was just fanservice šŸ˜… but good crossover with Terminator šŸ˜‚

Collapse
 
puruvj profile image
PuruVJ

Cap lifting the hammer was also fanservice, but it was so freaking great!!! Same in this one.

Collapse
 
devdufutur profile image
Rudy NappĆ©e • Edited

Indeed but cap was a real actor (until he aged šŸ˜…) !

(Just trolling šŸ˜˜)

Collapse
 
puruvj profile image
PuruVJ

What crossover with Terminator? The Dark troopers?

Collapse
 
devdufutur profile image
Rudy NappƩe

Yup

Collapse
 
calinzbaenen profile image
Calin Baenen

How did you highlight the text in the post?

Collapse
 
puruvj profile image
PuruVJ

Use mark tag

Collapse
 
calinzbaenen profile image
Calin Baenen

What's the "mark" tag? And why can't I use color tags with the "color"/"style" properties?

Thread Thread
 
puruvj profile image
PuruVJ

w3schools.com/tags/tag_mark.asp

As for yur other qn, dunno. I just write markdown for my blog site's blog engine, then copy paste it on dev to

Thread Thread
 
calinzbaenen profile image
Calin Baenen

That didn't explain how you colored them.
Do I add the color property to it? Or....?

Thread Thread
 
puruvj profile image
PuruVJ

I didn't color anything myself. You talking about the yellow backgroumd?

Thread Thread
 
calinzbaenen profile image
Calin Baenen

Yes,

Thread Thread
 
puruvj profile image
PuruVJ

I used the mark tag. That's how

Thread Thread
 
calinzbaenen profile image
Calin Baenen

facepalm

Collapse
 
hanna profile image
Hanna Rose

Great post! I love top level await, just wish cjs could use it, though I've been using typescript more often as of recently.

Collapse
 
puruvj profile image
PuruVJ

Typescript is our ************* in mandalorian last episode.

And there's your spoiler free response