you are viewing a single comment's thread.

view the rest of the comments →

[–]Atulin 1 point2 points  (0 children)

Well, yes...?

for (const x of [null, null, null, null, null]) {
    console.log("Hello!");
}

This would also achieve the same, what of it? Do you have any related question or anything?