r/AskProgramming • u/Least_Bid9692 • Oct 12 '26
Worst programming language
For me I'm sorry but that's c no oops that's the heart of it's upgraded version cpp
0
Upvotes
r/AskProgramming • u/Least_Bid9692 • Oct 12 '26
For me I'm sorry but that's c no oops that's the heart of it's upgraded version cpp
View all comments
Show parent comment
2
u/marrsd Oct 13 '26
This is a React thing. It's got nothing to do with Javascript. In JS, like most other languages, objects are always passed to or returned from functions by reference while primitives are passed by value.