Skip to content

Commit d27bf56

Browse files
committed
Coding challenge solution
0 parents  commit d27bf56

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function arrAdder(arr) {
2+
result = arr.reduce((a, b) => a.map((v, i) => v + b[i]))
3+
return result.join(' ')
4+
}
5+
6+
arrAdder([
7+
['J','L','L','M'],
8+
['u','i','i','a'],
9+
['s','v','f','n'],
10+
['t','e','e','']
11+
])

0 commit comments

Comments
 (0)