Skip to content

Instantly share code, notes, and snippets.

View AdPunga's full-sized avatar

Adrian Punga AdPunga

  • Moldova
  • 17:36 (UTC +03:00)
View GitHub Profile
const users = [
{ id: 1, name: "Adrian", email: "adrian@email.com" },
{ id: 2, name: "Iurie", email: "iurie@email.com" },
{ id: 3, name: "Adelina", email: "adelina@email.com" },
];
const getUserData = function (userId) {
return new Promise(function (resolve, reject) {
console.log("Fetching user:", userId);