How to open multiple pages with “window.open()” | javascript [duplicate]

I was trying to open multiple pages with a “for” on javascript console, but when I execute it, it only opens the first page and the next are not assigned.

This is the code I was using:
code image

I think it should works, but only works for the first page.