Created
May 23, 2018 13:52
-
-
Save mkczarkowski/8542f96959189c3819e5326dfc7188d0 to your computer and use it in GitHub Desktop.
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
| function Adder(value) { | |
| this.value = value; | |
| } | |
| Adder.prototype.addToArray = function (arr) { | |
| 'use strict'; | |
| return arr.map(function (x) { | |
| return x + this.value; // TypeError. | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment