Promises JavaScript
Promise, ou Promessa, é um objeto usado para processamento assíncrono. Uma Promise representa um valor que pode estar disponível agora, no futuro ou nunca.
Por que isso é importante? Imagine um site que carrega dados de uma API, então quando o dados é recebido é…