Archived
What advantage(s) are sought through the use of promises?
-1
Community Evaluations
Incorrect answer
Anas15/11/2023
C'est un autre avantage majeur des promesses à part le fait d'ordonner le déroulement des opérations. Elles aident à éviter ce qu'on appelle "l'enfer des callbacks" (callback hell), où de multiples fonctions de rappel sont imbriquées les unes dans les autres, rendant le code difficile à lire et à maintenir. Les promesses permettent une structure de code plus plate et plus lisible. Le choix des réponses est incorrect.
10
The certificate variable is not attainable outside the if loop23
Fix the following Javascript loop:9
Write a switch statement that checks if a person can go down a slide based on their weight and height.10
Write a Javascript code that displays 'Adversity is not to be feared' and 'There is potentially a real danger'10
Use spread operator to split an array into two arrays in Javascript37
Write a JavaScript function that fetches data from an API and logs it to the console.90
Understanding the differences between `map()` and `forEach()` methods in JavaScript