How to inherit one object from another while objects are created using object literals in javascript?
<p>I hope this will work</p>

<pre><code>var Human = function() {
   this.name = "baby";
   this.age = 0;
}
var Man = function() {
   this.sex = male;
}
Man.prototype = Human;
</code></pre>

<p>But</p>

<pre><code>var Human = {
    name:"baby",
    age:0
};
var Man = {
    sex:"male"
};
</code></pre>

<p>How to inherit one object from another while objects are created using object literals in javascript?</p>
