DEV Community

loading...

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

Collapse
lukaszahradnik profile image
Lukáš Zahradník

You are correct. But the behavior I described is what the passing by reference is about (which isn't possible in JS). Check out for example passing by reference in C# (docs.microsoft.com/en-us/dotnet/cs...) via ref keyword.