let myArray = []; if( myArray.length > 0 ) { console.log(myArray); console.log("Array has elements"); } else { console.log("Array has no elements"); }