-2

This page on JS Promises says it is a software abstraction. What is a software abstraction and why is the JS Promises called software abstration?

Kilian Foth
  • 110,899

1 Answers1

0

A JS Promise is a language feature that can be used whenever you need "a value which may be available now, or in the future, or never". If this case occurs repeatedly in your code, it makes sense to use Promises instead of implementing your own code to handle this over and over again.

Therefore it can be called an abstraction.

Frank Puffer
  • 6,459