Find the correct method for the function that enablesarrayOfArraysto take three arrays as arguments and create a new array containing these three arrays. Write the name of the method inside the blank field.
Array creation
Array of arrays
Report a typo
Fill in the gaps with the relevant elements
function arrayOfArrays(arr1, arr2, arr3) {
return Array.(arr1, arr2, arr3);
}
console.log(arrayOfArrays([1, 2], ['a', 'b'], [true, false]));
// Output: [[1, 2], ['a', 'b'], [true, false]]Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.