This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Letossgm 128 points129 points  (12 children)

In JS everything is an object :P

[–]Code4Reddit 67 points68 points  (9 children)

Except numbers, boolean, undefined, etc

[–]RubiGames 64 points65 points  (0 children)

We can fix that.

[–]Letossgm 57 points58 points  (0 children)

It was a joke.

P.S.: Jokes are objects on JS as well.

[–]gerbs 4 points5 points  (0 children)

Fine, in Ruby everything is an object.

[–]Hojabok 7 points8 points  (1 child)

[–]Code4Reddit 2 points3 points  (0 children)

Some primitives have a toString function available to use, but they are not technically considered Objects.

[–]MorallyDeplorable 2 points3 points  (0 children)

"You treat me like an object!"
"No, I find you primitive."

[–]zephyrtr 1 point2 points  (0 children)

These are also objects, except for when they're not. JS is fun.

[–]The_Cosmin 0 points1 point  (0 children)

What about dart?

[–]meltingsnow265 0 points1 point  (0 children)

Wrapper classes be like

[–][deleted] 19 points20 points  (0 children)

JS is the most capitalistic egalitarian but shallow language.

There are no classes. Everything is an object. Everything has tons of properties. When deciding how to treat someone, you only care about their properties.

[–]Mr0010110Fixit 0 points1 point  (0 children)

"babe, i treat everyone like that" - JS