var a = [3, 5, 7];
var b = [9, 10, 11];
let c = [];
function name(a, b) {
a.map(function(x, index) {
let result = b[index] * x;
c.push(result);
}
}
name(a, b);
console.log(c) // this will show a new array with the results
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…