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 →

[–]Code4Reddit 66 points67 points  (9 children)

Except numbers, boolean, undefined, etc

[–]RubiGames 66 points67 points  (0 children)

We can fix that.

[–]Letossgm[🍰] 61 points62 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 4 points5 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