DEV Community

Discussion on: What are loops in JavaScript and why use them?

Collapse
 
hamza786504 profile image
The web developer

Yes, you can use map method as we if you want to print the array