Why don't we `await` the call to `generateHTML()`?
Why don't we
await the call to
generateHTML(astros), since I presume that we want to only remove the button after we've generated the astronaut profiles to the screen?
Brandon WhiteTreehouse Moderator
Great question. The reason you don't
await generateHTML() is because that function isn't asynchronous. No requests are being made to the server. You're not waiting on a response. You're simply taking the data that's passed in as an argument to the function and you're wrapping it in HTML tags.
Does that make sense? If not, I'll try again.