3 ms·
Everything in javascript except primatives are objects. Classes are objects, functions are objects, the runtime environment is an object. Not only is everything
by stuartjohnson12 4y ago
Everything in javascript except primatives are objects. Classes are objects, functions are objects, the runtime environment is an object. Not only is everything an object, but everything is mutable in an unlimited way.
- dahart 4y agoAnd so how does this reflect on whether JS is a good language for demonstrating algorithms? What does it matter if something is an object? How would limiting mutability make a repo of algorithm examples any better? How are these things meaningfully different from other programming languages in this context?