Question: JAVASCRIPT PLZ Write a function that takes two array arguments, each containing a list of numbers, and returns a new array that contains the product

JAVASCRIPT PLZ

Write a function that takes two array arguments, each containing a list of numbers, and returns a new array that contains the product of each pair of numbers from the arguments that have the same index. You may assume that the arguments contain the same number of elements.

EXAMPLE:

multiplyList([3, 5, 7], [9, 10, 11]); // [27, 50, 77] multiplyLIst([5, 10, 15, 20], [1, 2, 3, 4]); // [5, 20, 45, 80]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!