FrontEnd.ro logo
Ce este un Promise?
fetch('https://api.github.com/users/frontend-ro')
  .then((response) => response.json())
  .then((profile) => {
    console.log(`Email: ${profile.email}`);
  })
  .catch((reason) => {
    console.log(`Couldn't convert response to JSON`, reason);
  });