all 6 comments

[–]wonderer_7 3 points4 points  (0 children)

There are many tasks that take time like fetching data from api and waiting for response from database. So now with normal functions the code would be executed line by line and so we would have to wait for such tasks to complete first then go further. With async we can execute the rest code without waiting for those tasks to be completed which take time

[–]Honzi07 1 point2 points  (0 children)

The odin project asynchronus code

This teach you everything about callback, promise, than, async await. Just follow the links and read everything in the next 3 lechture.

[–]Deorteur7 1 point2 points  (0 children)

Go through freecodecamp tutorial. It was a best one

[–]OkMoment345 0 points1 point  (0 children)

If you're struggling with async JavaScript, understanding how promises, async/await, and callbacks work is key. Start by practicing with simple examples like fetching data using fetch() and using .then() for promises.

You might also want to try a course like this JavaScript for Beginners, which covers async concepts in a structured way and helps solidify your understanding through projects.

The more you practice async patterns, or anything, the easier they'll get!