Yahoo India Web Search

Search results

  1. 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.

  2. 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.

  3. verb. uk / ˈprɒm.ɪs / us / ˈprɑː.mɪs / promise verb (SAY CERTAINLY) Add to word list. B1 [ I or T ] to tell someone that you will certainly do something: [ + to infinitive ] He promised faithfully to call me every week. [ + that ] The government have promised that they'll reduce taxes. [ + (that) ] Promise me (that) you won't tell him.

  4. 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() .

  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. Jun 9, 2024 · A Promise is a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers with an asynchronous action's eventual success value or failure reason.

  7. (informal) used as a way of encouraging or warning somebody about something. I can promise you, you'll have a wonderful time. If you don't take my advice, you'll regret it, I promise you. promise (somebody) the earth/moon/world.

  8. promise. Thesaurus > to promise someone something > promise. These are words and phrases related to promise. Click on any word or phrase to go to its thesaurus page. Or, go to the definition of promise.

  9. Definition of promise noun in Oxford Advanced Learner's Dictionary. Meaning, pronunciation, picture, example sentences, grammar, usage notes, synonyms and more.

  10. an undertaking or assurance given by one person to another agreeing or guaranteeing to do or give something, or not to do or give something, in the future. indication of forthcoming excellence or goodness. a writer showing considerable promise. the thing of which an assurance is given.

  1. People also search for