Skip to content

Pass by value or reference question #97

@dsaw

Description

@dsaw

Hi. NIce set of questions, kudos to you for maintaining it for free.

I think the solution is that JS should be pass by value because even objects are references which are passed by value (by the reference itself). A new reference is not created like in C++ (using & operator) [0].

[0] https://stackoverflow.com/questions/518000/is-javascript-a-pass-by-reference-or-pass-by-value-language. Check the top answer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions