What is Promise?
A way to handle operations that will complete in the future, with success or failure
Why It Matters
Promises make it easier to write and read code that deals with things that take time
Real-World Example
A promise that resolves with user data when the API call succeeds, or rejects if it fails
Learn More at buildDay Melbourne
Want to understand these concepts hands-on? Join our one-day workshop and build a real web application from scratch.
Related Terms
Callback
A function that runs after another operation completes
Async/Await
A cleaner way to write code that waits for slow operations to complete
Full-stack
Working on both the frontend (what users see) and backend (the server and database) of an application
TypeScript
JavaScript with added type checking that catches errors before your code runs
JavaScript
The programming language that makes websites interactive and dynamic
Environment Variables
Secret settings stored outside your code, like passwords and API keys