Skip to content

Instantly share code, notes, and snippets.

@artem-alek
Created February 9, 2017 14:16
Show Gist options
  • Save artem-alek/5e93b6af72bab6272a20c613fd15f9ce to your computer and use it in GitHub Desktop.
Save artem-alek/5e93b6af72bab6272a20c613fd15f9ce to your computer and use it in GitHub Desktop.
Section 1:
1. To ensure that we know what data type we are working with. That it s jquerified for the rest of the function.
2. jqButton is a jquerified and is not able to be used with .innerHTML because it is a regualr javascript function. We need to use .html().
Section 2:
1. event because the event is that holds the object of the click.
2. It refers to the key of object event. So, .target is a key in the object event.
Section 3:
1. No idea, i get lost when i need to have two arugments.
2. powers.map(function (double) { return double * 2 })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment