This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateInventory(arr1, arr2) { | |
// var newArr = []; | |
// Reverse array values so that the the | |
// first values are the names instead of amounts | |
arr1 = reverseArrayValues(arr1); | |
arr2 = reverseArrayValues(arr2); | |
console.log("BEFORE\narr1: "+ arr1 + "\narr2: "+arr2); | |