2 ms·
The 'types' in JS don't typically include implementation implications as much as they do in more strongly typed languages. If your algorithm is looping through
by humanrebar 9y ago
The 'types' in JS don't typically include implementation implications as much as they do in more strongly typed languages. If your algorithm is looping through a set of widgets, you just need a container and things that look like widgets. In Java, C++, etc., you often are pulling in a type with baked-in assumptions about logging, DB access, etc.