In Javascript, Everything Is (or acts like) An Object

Опубликовано: 04 Ноябрь 2024
на канале: Source Decoded
14,220
160

Javascript, probably the most ubiquitous programming language on the planet, has an amazing feature: Everything is an Object. Really, everything: numbers, booleans, and functions included.

Jared and Benjamin talk about this fact, and some of the awesome that goes along with it. We also give you a taste of the magic that flows from the almighty Javascript Function.

[edit]: We've since learned (thanks everybody), that there are technically primitive values in Javascript, but they always (for every practical purpose anyway) act like Objects.

[another edit]: Yes, yes. We got Pi squared wrong, I meant Pi * 2. Oops.