Skip to content

Instantly share code, notes, and snippets.

@buymed-hoangpham
Created September 10, 2022 09:59
Show Gist options
  • Save buymed-hoangpham/02b0aca666e27c27ebeba009d10748da to your computer and use it in GitHub Desktop.
Save buymed-hoangpham/02b0aca666e27c27ebeba009d10748da to your computer and use it in GitHub Desktop.
practice
const peopleNameArray = ['William', 'Collin', 'Stephen'];
const showPeopleName = function (name) {
console.log(`Hello ${name}`);
};
peopleNameArray.forEach(showPeopleName);
peopleNameArray.map(showPeopleName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment