Created
July 21, 2019 07:34
-
-
Save lelouchB/de88c6f4f2d570eb0525a9b9153d1544 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
const num = [1,2,3,4,5,6] | |
const reverseNum = num.reverse() | |
console.log(reverseNum) //[ 6, 5, 4, 3, 2, 1 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment