sporto / planetproto

Understanding JavaScript Prototypes - Workshop
221 stars 58 forks source link

teaching using proto has confusing drawbacks #2

Closed sporto closed 10 years ago

sporto commented 10 years ago

teaching using proto has confusing drawbacks. e.g. y = {foo: 'bar'}, x.proto = y;, console.log(x) results in '{}' instead of {"foo": "bar"}

cc/ @maxogden

sporto commented 10 years ago

This is the best way to teach this IMO, even with the drawbacks, will just leave at is