Skip to content

Instantly share code, notes, and snippets.

@gladchinda
Created April 18, 2018 09:07
Show Gist options
  • Save gladchinda/beb469d722179a8c6405ae9d32359e02 to your computer and use it in GitHub Desktop.
Save gladchinda/beb469d722179a8c6405ae9d32359e02 to your computer and use it in GitHub Desktop.
const rgb = [200, 255, 100];
// Skip the first two items
// Assign the only third item to the blue variable
const [,, blue] = rgb;
console.log(`Blue: ${blue}`); // Blue: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment