Skip to content

Lesson 13 Await vs wait() #4584

Answered by alymurtazamemon
Nlferu asked this question in Q&A
Jan 23, 2023 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

@Neftyr

wait we use with transactions which wait for the number of block confirmations we specified in it.

await we use in front of function calls which perform asynchronous calls inside. This allows the function to complete before our code moves down the line.

And about the const, this variable must be defined somewhere before use.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@rajanlagah
Comment options

@alymurtazamemon
Comment options

@Nlferu
Comment options

@alymurtazamemon
Comment options

@Nlferu
Comment options

Answer selected by Nlferu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants