how to get the number of items in an array javascript code example Example: js length of array arr = ["a", "b", "c"]; len = arr.length; // 3