Promise related doubts

  1. where do we use promises in making websites
  2. why are promises used.
  3. what problem is solved by using promises.