![Console.log prints an array twice, the first one empty. Why? : JavaScript, Programming Language, Programming : r/learnjavascript Console.log prints an array twice, the first one empty. Why? : JavaScript, Programming Language, Programming : r/learnjavascript](https://preview.redd.it/iql38shgdlu11.png?width=458&format=png&auto=webp&s=cbd8ec1a24eb4012388b95a7adae4bd0797a101a)
Console.log prints an array twice, the first one empty. Why? : JavaScript, Programming Language, Programming : r/learnjavascript
![Javascript array length returning zero even though it's the right value when I console.log the array - The web development company Lzo Media - Senior Backend Developer Javascript array length returning zero even though it's the right value when I console.log the array - The web development company Lzo Media - Senior Backend Developer](https://i.stack.imgur.com/kfKpB.png)
Javascript array length returning zero even though it's the right value when I console.log the array - The web development company Lzo Media - Senior Backend Developer
![Can't run foreach and console.log on arrays in debug console · Issue #43267 · microsoft/vscode · GitHub Can't run foreach and console.log on arrays in debug console · Issue #43267 · microsoft/vscode · GitHub](https://user-images.githubusercontent.com/4033249/36005361-29d31420-0cec-11e8-9389-bc8b06cc9b39.png)
Can't run foreach and console.log on arrays in debug console · Issue #43267 · microsoft/vscode · GitHub
![Why Chrome's Developer Console Sometimes Lies: Lazy Evaluation with JavaScript | Young Coder | Matthew MacDonald | Young Coder Why Chrome's Developer Console Sometimes Lies: Lazy Evaluation with JavaScript | Young Coder | Matthew MacDonald | Young Coder](https://miro.medium.com/max/1400/1*LQKbLHY0IZO4Flm0zyNJxg.png)