Last active
July 12, 2017 01:57
-
-
Save deconstructionalism/e454cd826ffb9efc777c25abcdee11e2 to your computer and use it in GitHub Desktop.
General_Assembly_excersize_1
This file contains hidden or 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
| var names = ['Fido', 'Rufus', 'Meatyard']; | |
| names.prototype = { | |
| addName: function () { this.push(name) }, | |
| sayNames: function () { this.map(name => { | |
| console.log(name) | |
| }) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment