samedi 15 septembre 2018

How can I sum all the numeric elements of an array that are not common?

var array = [2,4,12,4,3,2,2,5,0] and I want to add 2+4+12+3+5 and want to show the result, using javaScript without any library.

Aucun commentaire:

Enregistrer un commentaire