Lambda Expressions vs Anonymous Functions

Open the console and review the JS code.

const users = [
  { id: "πŸ’»", name: "Gareth", skill: "coder" },
  { id: "🎧", name: "Danny", skill: "DJ" },
  { id: "πŸ•ΊπŸΌ", name: "Barry", skill: "dancer" }
];

function getUserSkills(user) {
  return user.skill;
}

console.log(users.map(getUserSkills));

console.log(
  users.map(function (user) {
    return user.skill;
  })
);

const getUserSkillsExp = (user) => user.skill;

console.log(users.map(getUserSkillsExp));