(async () => {
try {
const response = await fetch("me");
if (response.ok) {
const me = await response.json();
console.log(me);
} else {
const { message } = await response.json();
throw new Error(message);
}
} catch (error) {
console.error(error);
}
})();
{
firstName: "MeySaM",
lastName: "HaZraTi",
birthday: "07-10",
contact: {
phone: 09035384705,
email: "iMeysamHazrati@gmail.com"
},
technologies: ["HTML", "CSS", "Tailwind", "JS", "React", "Node", "Express", "MongoDB"],
isCoding: true
}