let num = [2, 2, 4, 6, 8, 10].reduce(function(a, b) {
return (a + b) / 2
});
console.log(num)
[Язык JS]
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
let num = [2, 2, 4, 6, 8, 10].reduce(function(a, b) {
return (a + b) / 2
});
console.log(num)
[Язык JS]