Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

tips and tricks for javascript

var numbers = [3, 5, 7, 2];
var sum = numbers.reduce((x, y) => x + y);
console.log(sum); // returns 17
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #tips #tricks #javascript
ADD COMMENT
Topic
Name
9+3 =