Go Pro Sign Up Login

Buy Now and unlock this series

$

39

.99

$

24

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Async IIFE

Downloads

Become a pro to download code and videos

Starting Code

Final Code

Comments

User avatar

Raul

9 months ago [edited]

@Tim Smith Not necessarily, you could have have a fetch inside a standard function in the exact same way and then invoking that function whenever you need it to run

User avatar

Tim Smith

9 months ago

Is that the only way to store fetch data in a const? So everytime I want to use fetch, I need to wrap the entire file in an IIFE

Want to join the conversation?

Become a Pro member today!