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