DEV Community

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

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# ( via ref keyword.