Created
February 3, 2019 17:43
-
-
Save 0GiS0/bc12a94690b387d8e48deae902d8c41d 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
var animals = ['dog', 'cat', 'fish', 'horse', 'lion', 'bird']; | |
var [dog, , , , lion, ] = animals; | |
console.log(dog); //dog | |
console.log(lion); //lion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment