length of array in js when one element code example Example: js length of array arr = ["a", "b", "c"]; len = arr.length; // 3