DEV Community

Discussion on: Merging Arrays in Javascript

Collapse
 
janjuks profile image
janjuks

Tiny little thing - you are hiding iteratedNum by defining it inside and outside while loop.

Collapse
 
bengreenberg profile image
Ben Greenberg

Yes, you are right, thanks for noticing!