DEV Community

Discussion on: JS interview in 2 minutes / value vs reference

 
javier123454321 profile image
Javier Gonzalez

I see it's not a direct reference to the variable because you cant reasign that reference, however, you do have access to the internals of the parameter that was passed. Thanks for clearing that up, I have often heard that you pass by reference in javascript but TIL.

Thread Thread
 
hexnickk profile image
Nick K

Thanks for the detailed answer @lukaszahradnik and thanks for asking for more details @javier123454321 πŸ™ I have added update notes to the post itself.

Thanks again for clarifying this!