title: Javascript Array of Functions
body: <pre><code>var array_of_functions = [
      first_function('a string'),
      second_function('a string'),
      third_function('a string'),
      forth_function('a string')
  ]
  
  array_of_functions[0];
  </code></pre>
  
  <p>That does not work as intended because each function in the array is executed when the array is created.</p>
  
  <p>What is the proper way of executing any function in the array by doing:</p>
  
  <pre><code>array_of_functions[0];  // or, array_of_functions[1] etc.
  </code></pre>
  
  <p>Thanks!</p>