title: Create an array inside of an object containing values from the object
body: <p>I'm trying to create an array inside an object containing variables from this object using this but I'm getting an error.
  Am I using this wrong ?
  Thx for your help</p>
  
  <pre><code>var data = {
      p:   [{content: "p",
             text: "this is random text" },
             {content: "p",
              text: "this is a second random text"
           }],
      img: [{content: "image",
             src: "data/img/1_1.png",
             alt: "This a an image"},
            {content: "image",
             src: "data/img/1_2.png",
             alt: "This is the second image"}],
      title: {content: "title",
              text: "Ceci est un titre"},
      //This doesn't work
      all: [this.title, this.p[0], this.img[0], this.p[1], this.img[1]]
  }
  //But this works
  console.log(data.title);
  console.log(data.p);
  console.log(data.img);
  </code></pre>