I'm trying to learn Javascript and I'm looking at the for loop.
I'm trying to loop through 4 numbers which I've done successfully.
for (i=0;i<5;i++) {
console.log(i + " and " + (i+1));
}
However I'm trying to achieve something like this:
0 1
0 2
0 3
0 4
1 2
1 3
...etc
Is that possible with a for loop?
Thanks
Terry