title: Object literal vs constructor+prototype
body: <p><strong>Object literal</strong>=name value pairs wrapped in curly braces.</p>
  
  <p><strong>Constructor</strong>=a function used to create multiple instance using keyword new.</p>
  
  <p><strong>Prototype</strong>=for extension of a literal.</p>
  
  <p>This is what I have understood till now.But the more I research,More I get confused about what is the <strong>significance</strong> of each one of them.
  I have used <em>constructor,protoypes and literals</em> in my code a few times.But everytime I use them,I feel like I am still <em>not aware of the full potential of it</em>.I want to go one step ahead of being a begineer now.I hope Folks at stackoverflow help me achieve it</p>
  
  <ol>
  <li><p>Which is the <strong>best</strong> preferred way of programming(<strong>object
  literals vs constructors vs prototype</strong>)</p></li>
  <li><p>can a code with constructor and protoype  be written using just object literals
  <strong>without</strong> using constructor and protoype.</p></li>
  <li><p>what is the signifiance of <strong>anonymous function</strong>.</p></li>
  </ol>
  
  <p>A very simple example demonstrating their importance will also do.I am aware of what they are but I am not aware of what possible magic they can do.</p>