A promise that is either resolved or rejected is called “settled”
he function passed to new Promise is called the executor
Its arguments resolve and reject are callbacks provided by JavaScript itself. Our code is only inside the executor.
The “producing code” takes whatever time it needs to produce the promised result, and the “promise” makes that result available to all of the subscribed code when it’s ready.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.