Complete the code to get the length of the array.
const fruits = ['apple', 'banana', 'cherry']; console.log(fruits.[1]);
Complete the code to check if the array is empty.
const numbers = []; if (numbers.[1] === 0) { console.log('Array is empty'); }
Fix the error in accessing the array length.
const colors = ['red', 'green', 'blue']; console.log(colors.[1]());
Fill both blanks to create an array of numbers and print its length.
const numbers = new Array([1]); console.log(numbers.[2]);
Fill all three blanks to create an array, add an element, and print the new length.
const arr = []; arr.[1]('hello'); console.log(arr.[2] + [3]);
