【发布时间】:2021-04-28 21:34:36
【问题描述】:
一个函数,它包含each pair of numbers 与具有相同索引的参数的乘积。
var a = [3, 5, 7];
var b = [9, 10, 11];
a.map(function(x, index) { //here x = a[index] //how do i write this as function name(){}
console.log(b[index] * x);
});
【问题讨论】:
标签: javascript arrays function array.prototype.map