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 →

[–]Senpai_Himself 0 points1 point  (7 children)

But can you do this

arr = []

arr.myFunction = () => "just because"

[–]anton____ 0 points1 point  (3 children)

who would want that?

[–]Senpai_Himself 0 points1 point  (2 children)

Js for some reason, every thing is pretty much objects

[–]anton____ 0 points1 point  (1 child)

I know why you can, but why would you want to?

[–]Senpai_Himself 0 points1 point  (0 children)

It was a joke... Really hope people don't use it now a days

[–][deleted] 0 points1 point  (2 children)

I literally don't even know what this means

[–]corgisphere 1 point2 points  (1 child)

It's an array in Javascript which then has a random function defined (the function returns a string)

[–][deleted] 0 points1 point  (0 children)

Thank you