title: Print name of constructor variable
body: <p>Say, I have 2 constructors assigned to 2 variables:</p>
  
  <pre><code>var example1 = function(argument1){
      this.argument1 = argument1;
  }
  
  var example2 = function(argument2){
      this.argument2 = argument2;
  }
  </code></pre>
  
  <p>And an array of objects containing objects from both of these constructors:</p>
  
  <pre><code>var array1 = new Array();
  array1[0] = new example1(example);
  array1[1] = new example2(example);
  </code></pre>
  
  <p>My question is, when I choose an item from the array, how can I print the name of the constructor variable it came from? </p>
  
  <p>To make this clear and succint, here's an example:</p>
  
  <pre><code>console.log(array1[0].argument1)
  </code></pre>
  
  <p>Will print <em>example</em>. But I don't want that. I want it to print the name of the constructor variable it came from.</p>
  
  <pre><code>console.log(array1[0].constructor.toString());
  </code></pre>
  
  <p>Prints the content of the variable, but it is unsatisfactory.</p>