title: Array of functions in Javascript object
body: <p>I need to create an object within array of functions which should be called inside of object. but <strong>myObj.myFunctions</strong> is always undefined inside of my object after creation.</p>
  
  <p>here is my example code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var myObj = {
        myValue:"My Callback function has been Called",
        myFunctions: [this.myCallback,this.myCallback2],
        init: function(){
          //I need to call this.myFunctions[0...etc]  as callback
          //this.myFunctions[0]() //&lt;-- Here is the error
          console.log(this.myFunctions); //&lt;-- always undefined
        },
        myCallback:function(){
           console.log(this.myValue);
        },
        myCallback2:function(){
           console.log(this.myValue+" Second Callback");
        }
  }
  var createObject = Object.create(myObj);
  createObject.init();
   </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code> </code></pre>
  </div>
  </div>
  </p>
  
  <p>any idea how could I create array of functions as property of main object?
  Thanks</p>