Cellcom (Israel) interview question

explain what is promise in JS?

Interview Answer

Anonymous

7 Nov 2024

1. what is promise in js In JavaScript, a Promise is an object that represents the eventual completion (or failure) of an asynchronous operation and its resulting value. Think of it as a placeholder for a value that you don't have yet but will at some point in the future.