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.
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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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!