Is there a way to combine the elements of two arrays and return them in a new array? Let's say we have these two arrays:
const whoArr = ["my", "your"];
const credentialArr = ["name", "age", "gender"].
The desired outcome is a new array with the elements:
["my name", "my age", "my gender", "your name", "your age", "your gender"]
Neither .join
nor .concat
seem to solve this problem.