Logo
git fire - For when your code is literally on fire.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Prototypes Memes

Posts tagged with Prototypes

Everything Is An Object

Javascript Programming Frontend Webdev
10 months ago 402.4K views 0 shares
Everything Is An Object
JavaScript devs discovering that literally everything inherits from Object.prototype: strings, numbers, booleans, arrays, functions, even null and undefined (well, almost). You think you're working with primitives? Nope, they get auto-boxed into objects the moment you call a method on them. That innocent "hello".toUpperCase() ? Your string just became a String object behind the scenes. JavaScript's prototype chain is like that friend who insists everyone at the party is related somehow. Try typeof null returning "object" and watch the existential crisis unfold. The language took "everything is an object" from Python and Ruby, then cranked it up to eleven with some delightfully weird type coercion sprinkled on top.

Today's picks

Das Keyboard 4 Professional Wired Mechanical Keyboard, Cherry MX Brown Mechanical Switches, 2-Port USB 3.0 Hub, Volume Knob, Aluminum Top (104 Keys, Black)

Das Keyboard 4 Professional Wired Mechanical Keyboard, Cherry MX Brown Mechanical Switches, 2-Port USB 3.0 Hub, Volume Knob, Aluminum Top (104 Keys, Black)

Affiliate
$199.00
Don't Pay For AI, Frame Your Questions Like You Want Maccas

Don't Pay For AI, Frame Your Questions Like You Want Maccas

AI
794.5K views 6 months ago
How to C pointers

How to C pointers

Backend
134.7K views 4 years ago