r/javascript • • Jun 18 '17

Pass by reference !== pass by value

3.3k Upvotes

272 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jun 18 '17

[deleted]

0

u/[deleted] Jun 18 '17

[deleted]

0

u/[deleted] Jun 18 '17

[deleted]

1

u/HomemadeBananas Jun 18 '17

It's not too confusing I think if you've worked with a language that has pointers. In C or C++ you can do the same thing as C++'s pass-by-reference with pointers.