imjohnbo / playground

Here be a playground
2 stars 1 forks source link

Function #94

Closed imjohnbo closed 2 years ago

imjohnbo commented 2 years ago

Here is a silly function:

const fruitCocktail = (additionalFruit) => {
  const fruits = ['🍌', '🍎', '🍐'];
  fruits.push(additionalFruit);
  return fruits;
}

and here is how to call it:

fruitCocktail('🍇')