![javascript - How to print object returned by Firebase service as array (to the console) - Stack Overflow javascript - How to print object returned by Firebase service as array (to the console) - Stack Overflow](https://i.stack.imgur.com/y0yhv.png)
javascript - How to print object returned by Firebase service as array (to the console) - Stack Overflow
![SOLVED: What will be the output: function printArray(a) var len = a.length, i = 0; if (len == 0) console.log("Empty Array"); else // do-while Loop in javascript do // code goes here SOLVED: What will be the output: function printArray(a) var len = a.length, i = 0; if (len == 0) console.log("Empty Array"); else // do-while Loop in javascript do // code goes here](https://cdn.numerade.com/ask_images/29fc576dabec4da99300d2973b1fef4c.jpg)
SOLVED: What will be the output: function printArray(a) var len = a.length, i = 0; if (len == 0) console.log("Empty Array"); else // do-while Loop in javascript do // code goes here
![Understanding The forEach Method for Arrays in JavaScript | by Javascript Jeep🚙💨 | Better Programming Understanding The forEach Method for Arrays in JavaScript | by Javascript Jeep🚙💨 | Better Programming](https://miro.medium.com/v2/resize:fit:2000/1*sGqOnNBQy7J7Cnmwf_ZlWg.png)