Answers for "tips and tricks for javascript"

0

tips and tricks for javascript

var numbers = [3, 5, 7, 2];
var sum = numbers.reduce((x, y) => x + y);
console.log(sum); // returns 17
Posted by: Guest on May-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language