Open MatthewCaseres opened 4 years ago
Send the following to the console:
let betterNow = [1,2000,3000,4] //ascending betterNow.sort((a,b) => a-b) console.log(betterNow) //descending betterNow.sort((a,b) => b-a) console.log(betterNow)
results in:
Send the following to the console:
results in: