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