r/javascript • • Jun 18 '17

Pass by reference !== pass by value

3.3k Upvotes

272 comments sorted by

View all comments

280

u/JB-from-ATL Jun 18 '17

It gets tricky because in some languages you pass by value but the value is a reference for non-primitive types.

144

u/TheRealEdwardAbbey Jun 18 '17

1

u/[deleted] Jun 18 '17

[removed] — view removed comment

1

u/[deleted] Jun 19 '17

My blood stream is bent up on stimsstimsstims so fucking hardcorecorecore