Created
July 21, 2019 08:24
-
-
Save lelouchB/4dc3991d2510ef3c6d2b155620fe7b76 to your computer and use it in GitHub Desktop.
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
let num1 = [25, 100, 23] | |
console.log(num1.sort()) //[ 100, 23, 25 ] | |
let num2 = ['25', '100', '23'] | |
console.log(num2.sort()) //[ '100', '23', '25' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment