Javascript not setting property of undefined in prototyped object
<p>I have an object I'm trying to set a property to.  However, I'm getting the type error <code>Uncaught TypeError: Cannot set property 'meh' of undefined</code>.</p>

<p>I'm trying to set this property using prototype.</p>

<pre><code>greenify = {
    color: function(){
        console.log("Turned green");
    }
};

greenify.prototype.meh = function(){
    console.log("Off");
}

console.log(greenify);
</code></pre>

<p>Can anyone explain why it's claiming the greenify object is undefined and how to fix it?</p>