In nodeJs is there a way to loop through an array without using array size? March 1, 2023 by Tarik You can use Array.forEach var myArray = ['1','2',3,4] myArray.forEach(function(value){ console.log(value); });