Skip to content

Instantly share code, notes, and snippets.

@shahab570
Created January 2, 2021 18:12
Show Gist options
  • Save shahab570/9ace434ce2fd08467e9f30f9332fb0c5 to your computer and use it in GitHub Desktop.
Save shahab570/9ace434ce2fd08467e9f30f9332fb0c5 to your computer and use it in GitHub Desktop.
var words = ["This", "is", "john", "Doe"];
var [first, second] = words;
console.log(first); //This
console.log(second); //is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment