Array of arrays

Report a typo

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.

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