var array = ['a', 'b', 'c']
function arrayTransform(array) {
if (array.lengths === 0) {
console.log("Empty")
} else {
console.log(array.join());
}
}
arrayTransform(array);
The expected result should be 1.a, 2.b, 3.c. Instead, I am receiving abc.