Big-O
//Log all pairs of array
const boxes = ['a', 'b', 'c', 'd', 'e'];
function logAllPairsOfArray(array){
for(let i = 0; i < array.length; i++){
for(let j = 0; j < array.length; j++){
console.log(array[i], array[j])
}
}
}
logAllPairsOfArray(boxes);
// Loops that are nested use multiplication
// O(n * n) => O(n^2) = Quadratic Time
INFO