Created
January 16, 2018 09:27
-
-
Save phpsmarter/674a3fbe6d3ff6c7a1aa0a8431de5a0e to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const names = ['John', 'Jack', 'Rose', 'Alex', 'Mercy', 'Emma', 'Peter'] | |
const fourLengthNames = names.filter(name => name.length === 4); | |
const greetingEveryone = names.map(name => `Hello ${name}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment