Skip to content

Instantly share code, notes, and snippets.

@artem-alek
Created February 28, 2017 14:25
Show Gist options
  • Save artem-alek/ecc75b7d1cd59bca86190ae3ee18fcd1 to your computer and use it in GitHub Desktop.
Save artem-alek/ecc75b7d1cd59bca86190ae3ee18fcd1 to your computer and use it in GitHub Desktop.
Section 1:
1. ages.map(function (num) { return num * 2 }
2. ages.map(function (num) { return num * 2 }).filter(function (num) { if (num < 65) {return num}})
3. ages.map(function (num) { return 'Age is: ' + num})
Section 2:
1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment