@GopeshMedayil/

All pairs

Nodejs

No description

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
let boxes = [1, 2, 3];
for (var i = 0; i < boxes.length; i++) {
  for (var j = 0; j < boxes.length; j++) {
    console.log(boxes[i], boxes[j])
  }
}
node v10.16.0