Ad
Code
Diff
  • let helloLangs = {
      english: "hello",
      pirate: "yar"
    }
    
    const hello = (whoever, lang="english") => `${helloLangs[lang]} ${whoever}`;
    • const helloLangs = {
    • let helloLangs = {
    • english: "hello",
    • pirate: "yar"
    • }
    • const hello = (whoever, lang="english") => `${helloLangs[lang]} ${whoever}`;