3 ms·
Ah, how clear. A Car is a generic object (clearly an English object given the spelling of its attribute names), with untyped attributes. The thing I wish the
by eplanit 17y ago
Ah, how clear. A Car is a generic object (clearly an English object given the spelling of its attribute names), with untyped attributes.
The thing I wish the JavaScript community knew much earlier in their careers was actual software engineering knowledge, such as Object-oriented, or at least typed, languages.
var car = new Object();
car.colour = 'red';
car.wheels = 4;
car.hubcaps = 'spinning';
car.age = 4;
- stan_rogers 17y agoDynamic weak typing is probably JavaScript's greatest strength, not a weakness. Grokking this, you can also begin to see reasons why schemaless databases can be of great utility.