Closed sporto closed 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
This is the best way to teach this IMO, even with the drawbacks, will just leave at is
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