title: Javascript Object : Literal Vs Constructor
body: <p>For creating Javascript object, we can use Literal or Constructor way;
  In Constructor way, we say;</p>
  
  <pre><code>function myObj(){
  this.myProp1 = "abc";
  this.myProp2 = "xyz";
  }
  </code></pre>
  
  <p>In literal way, we say;</p>
  
  <pre><code>var myObj = {
  myProp1:"abc",
  myProp2:"xyz",
  }
  </code></pre>
  
  <p>My question is when declaring properties, why there is a difference like why do we use "this.myProp1" in case of Constructor way and not use "this" in Literal way ?</p>