Using Reduce Method Javascript Documentation Mdn