What is the output of the following code? function magic(...nums) { let sum = 0; nums.filter(n => n % 2 == 0).map(el => sum+ | SoloLearn: Learn to code for FREE!

+1

What is the output of the following code? function magic(...nums) { let sum = 0; nums.filter(n => n % 2 == 0).map(el => sum+

arguments object

10/15/2019 11:09:26 AM

amal mohammed

2 Answers

New Answer

+2

seems unfinished, why dont you try to run the progrsm youself ? sololearn has codeplayground. you can ask if you have a doubt or need the explaination from the output you get.

0

I hate Javascript 🙁