constsolution=number=>// implicit return, no need for curly braces[...newArray(number)]//start new array of length.map((e,i)=>i)// add values from 0 to number - 1.filter(item=>item%3===0||item%5===0)// pass only elements that matches modal.reduce((acum,current)=>acum+current)// sum all passed elements
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
let's over complicate this :P