Echo JS 0.11.0

<~>
MaxArt 2714 days ago. link parent 1 point
Yes, but on a more practical side, it makes little difference: you copy that reference to work with the object it points to.
If you take PHP. instead, as long as they're arrays (for those who don't know the evil of PHP, they're the equivalent of *both* JavaScript's Array and Object instances), it makes *deep* copies of them, and you have to use the & operator to get refrences instead. (Class objects are always passed as in JavaScript instead - did I mention that PHP is evil?)

Replies