Home / Javascript Tips Generated By ChatGPT / Using Array.length to Determine the Number of Elements in Javascript Find out how many elements an array contains. Source Code let fruits = ["apple", "banana", "cherry"]; console.log(fruits.length); // 3