2 years agoThis is easier than for-loop | Master the "reduce() method" for Array manipulation in JavaScriptEasilyCoded