Log all pairs of array

Run Settings
LanguageJavaScript
Language Version
Run Command
// Log all pairs of array const boxes = [1, 2, 3, 4, 5]; function logAllPairsOfArray(arr) { for (i=0; i<arr.length; i++) { for (j=0; j<arr.length; j++) { console.log(arr[i],arr[j]) } } } logAllPairsOfArray(boxes) // O(n^2)
Editor Settings
Theme
Key bindings
Full width
Lines