title: JavaScript variable assignments from tuples
body: <p>In other languages like Python 2 and Python 3, you can define and assign values to a tuple variable, and retrieve their values like this:</p>
  
  <pre><code>tuple = ("Bob", 24)
  name, age = tuple
  print(name)           #name evaluates to Bob
  print(age)            #age evaluates to 24
  </code></pre>
  
  <p>Is there anything similar in JavaScript? Or do I just have to do it the ugly way with an array:</p>
  
  <pre><code>tuple = ["Bob", 24]
  name = tuple[0]       //name Evaluates to Bob
  age = tuple[1]        //age Evaluates to 24
  </code></pre>
  
  <p>Is there a better way to simulate Python tuples in JavaScript 5?</p>
  
  <p><strong>Update:</strong> See the answer regarding ES6, which should be favored over CoffeeScript for new projects.</p>