![Hey! I'm having a issue where the console.log() statement executes before the .map() function. So it logs out a empty array. I tested by putting the log inside the map, it prints Hey! I'm having a issue where the console.log() statement executes before the .map() function. So it logs out a empty array. I tested by putting the log inside the map, it prints](https://i.redd.it/8t1p24kt1yna1.png)
Hey! I'm having a issue where the console.log() statement executes before the .map() function. So it logs out a empty array. I tested by putting the log inside the map, it prints
![Hey! I'm having a issue where the console.log() statement executes before the .map() function. So it logs out a empty array. I tested by putting the log inside the map, it prints Hey! I'm having a issue where the console.log() statement executes before the .map() function. So it logs out a empty array. I tested by putting the log inside the map, it prints](https://preview.redd.it/hey-im-having-a-issue-where-the-statement-executes-before-v0-8t1p24kt1yna1.png?width=640&crop=smart&auto=webp&s=c22e68c81ca388bc39136eeaff8b63191413bd7d)
Hey! I'm having a issue where the console.log() statement executes before the .map() function. So it logs out a empty array. I tested by putting the log inside the map, it prints
![Javascript: need explanation for the output of console.log(new function(){ return this}) - Stack Overflow Javascript: need explanation for the output of console.log(new function(){ return this}) - Stack Overflow](https://i.stack.imgur.com/fREV4.png)
Javascript: need explanation for the output of console.log(new function(){ return this}) - Stack Overflow
![Processing Arrays and Functions with Return Values #3 | Unit 5 Online Professional Learning Course - Code.org Processing Arrays and Functions with Return Values #3 | Unit 5 Online Professional Learning Course - Code.org](https://images.code.org/632c3875d47bb6fd54130b9874c44552-image-1447778563981.gif)