JavaScript Promises Explained By Gambling At A Casino

Hey everyone, I’ve been trying to wrap my head around JavaScript promises, and someone told me they’re like gambling in a casino. That sounds like a weird analogy, but I’m intrigued. Can anyone explain how promises work in a way that makes sense?