Let's explain Promises for 5-year-old child who can easily understand the concept.
Imagine you have a friend, Timmy, who agrees to share his toy car with you tomorrow. A promise in programming is similar to that; it allows your code to say, "Hey, I'm going to do something, and when I'm done, I'll let you know."
In this case, playGa...
ravikr126.hashnode.dev2 min read