https://cr.linkedin.com/in/alberto-cole-palacios-88623474
JavaScript All The Things!
var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
for(let i = 0; i < array.length; i++) {
array[i] = Math.pow(array[i], 2);
}
array; //-> [0, 1, 4, 9, 16, 25, 36, 49, 64, 81][0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map(num => Math.pow(num, 2));"functional programming refers to the declarative evaluation of pure functions to create immutable programs by avoiding externally observable side effects."
- Luis Atencio
Functional Programming In Javascript