Using Reduce Method Javascript Array Functions W3schools