how to check length of array in javascript condition code example Example: javascript size array let array = [1, 2, 3]; console.log(array.length);