Skip to content

Instantly share code, notes, and snippets.

@artem-alek
Created February 7, 2017 14:14
Show Gist options
  • Save artem-alek/c307abc5096ad4fd58dd930d5da89861 to your computer and use it in GitHub Desktop.
Save artem-alek/c307abc5096ad4fd58dd930d5da89861 to your computer and use it in GitHub Desktop.
Section 1:
1. A callback calls another function to do something with a variable or data.
2. var evens = numbers.filter (function (nums) { return nums = numbers % 2 === 0 })
3. i used an anynonymus function and numbers.filter is the higher function and does the callback.
Section 2:
1. a string with methods attached to it
2. function isPariable (array) { return array.length % 2 === 0 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment