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

So Fetch

Downloads

Become a pro to download code and videos

Starting Code

Final Code

Comments

User avatar

Raul

9 months ago [edited]

@Tim Smith You could have a 'let' variable declared outside of that fetch and update the value of this variable whenever you need it to. If you were using React you could use state to store this data for example.

User avatar

Tim Smith

9 months ago

Can you show how to store are render that data to the DOM? PLEASE. I have GOOGLED the heck out of this. No one has covered it.

User avatar

Tim Smith

9 months ago

How do you get the data from the second .then into a usable const outside the fetch. Know one, not even MDN explains that. It is why I shy away from promises altogether.

Want to join the conversation?

Become a Pro member today!