Created
November 3, 2018 17:31
-
-
Save dotsonjb14/7316501f478f9aebc683102cce77f1e4 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
let inputs = []; | |
inputs.push(4); | |
inputs.push(6); | |
let result = inputs | |
.map(x => x * x) | |
.reduce((state, val) => state + val, 0); | |
console.log(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment