Front End Engineer Interview Questions in Melbourne | Glassdoor

Find jobs for Front End Engineer

Front End Engineer Interview Questions in Melbourne

2

Front end engineer interview questions shared by candidates

Top Interview Questions

What are Promises and what do they solve?

1 Answer

A Promise is an object that represents the state of an asynchronous task (completion, failure or pending). Callbacks can be attached to this object using the chainable .then() function. This solves the 'callback hell' nesting problem notable in classic function-based asynchronous tasks, and enables us to compose by chaining multiple callbacks rather than nesting them. Promises also guarantee callback execution, regardless of success or failure.