title: Is these two code snippets using Object Prototype are exactly same?
body: <pre><code>function Plant () {          
      this.country = &quot;Mexico&quot;;
      this.isOrganic = true;                                                                                                                          
      }
      
      Plant.prototype.showNameAndColor =  function () {
      console.log(&quot;I am a &quot; + this.name + &quot; and my color is &quot; + this.color);
      }
      
      Plant.prototype.amIOrganic = function () {
      if (this.isOrganic)
      console.log(&quot;I am organic, Baby!&quot;);
      }
  </code></pre>
  <p><strong>Is the above code is similar to the below code ???</strong></p>
  <pre><code>function Plant () {          
      this.country = &quot;Mexico&quot;;
      this.isOrganic = true;                                                                            
      this.showNameAndColor =  function () {
      console.log(&quot;I am a &quot; + this.name + &quot; and my color is &quot; + this.color);
      }
      this.prototype.amIOrganic = function () {
      if (this.isOrganic)
      console.log(&quot;I am organic, Baby!&quot;);
      }
      }
  </code></pre>
  <p>*1. Is the above two code snippets are exactly similar?</p>
  <ol start="2">
  <li>In the first snippet, there is two function <code>showNameAndClor</code> and <code>amIOrganic</code> which is set using <code>Plant.Prototype</code> does it mean all the new objects which are going to inherit the Plant object can access these two functions only  other than their own properties ?*</li>
  </ol>