var foo = { a: 42 }; // create `bar` and link it to foo var bar = Object.create( foo ); bar.b = "hello world from bar.b"; console.log( bar.b ); // "hello world" console.log ("The property 'bar.a' was delegated to the foo prototype. 'bar.a' has the value "+ bar.a ); // 42 <-- delegated to ` foo ` foo.hello = "hello from foo"; console.log ("Attributes added after the initialization are also seen.") console.log(" The new property 'foo.hello' can be accessed by 'bar': "+bar.hello );