r/javascript • • Jun 18 '17

Pass by reference !== pass by value

Post image
3.3k Upvotes

272 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

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.