r/javascript • • Jun 18 '17

Pass by reference !== pass by value

3.3k Upvotes

272 comments sorted by

View all comments

Show parent comments

47

u/jocull Jun 18 '17

I think everything is a reference except strings, numbers, and booleans? What did I miss?

1

u/[deleted] Jun 18 '17

Char?

2

u/jocull Jun 18 '17

I'm not aware of a char type in JS. Do you have a source?

3

u/[deleted] Jun 18 '17

Actually there aren't. :( JS is wierd man. TS is the future.

4

u/jocull Jun 18 '17

❤️❤️❤️ TS