Yahoo Malaysia Web Search

Search results

  1. Thesaurus: synonyms, antonyms, and examples. to promise someone something. promise I promise that I'll be home before dark. guarantee I can't guarantee that the operation will be successful. give (someone) your word He gave me his word that the job would be finished on time.

  2. Here is how to use a Promise: myPromise.then(. function(value) { /* code if successful */ }, function(error) { /* code if some error */ } ); Promise.then () takes two arguments, a callback for success and another for failure. Both are optional, so you can add a callback for success or failure only.

  3. May 31, 2024 · JavaScript Promises used to simplify managing multiple asynchronous operations, preventing callback hell and unmanageable code. They represent future values, associating handlers with eventual success or failure, resembling synchronous methods by postponing value delivery until later.

  4. Jun 9, 2024 · To learn about the way promises work and how you can use them, we advise you to read Using promises first. Description A Promise is a proxy for a value not necessarily known when the promise is created.

  5. prom· ise ˈprä-məs. Synonyms of promise. 1. a. : a declaration that one will do or refrain from doing something specified. b. : a legally binding declaration that gives the person to whom it is made a right to expect or to claim the performance or forbearance of a specified act. 2. : reason to expect something.

  6. Promises are useful when you have to handle more than one asynchronous task, one after another. For that, we use promise chaining. You can perform an operation after a promise is resolved using methods then() , catch() and finally() .

  7. 1. (often foll by to; when tr, may take a clause as object or an infinitive) to give an assurance of (something to someone); undertake (to do something) in the future. I promise that I will come. 2. (transitive) to undertake to give (something to someone) he promised me a car for my birthday.

  1. People also search for