17.11.2015 Views

JavaScript_Succinctly

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Logs 'foo', being found at Object.prototype.foo via the prototype<br />

chain.<br />

console.log(myString.foo);<br />

<br />

<br />

Notes<br />

Careful! Anything added to Object.prototype will show up in a for in loop and the<br />

prototype chain. Because of this, it’s been said that changing Object.prototype is<br />

forbidden.<br />

88

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!