re: Javascript uses call by sharing for objects VIEW POST

re: You say here that: It is commonly stated that javascript uses pass by value for objects too and that the value for objects is actually the refere...

Yes, that is what call by sharing is 👍 When I google "is javascript pass by value" I see results which says "javascript is pass by value". Only a few of them mentions the term call by sharing. So I'm just interested in the terminology here.


Yeah I had forgotten what call by sharing was until I read your post. I'd gotten used to calling it "call by reference"! I think Python uses the same model if I'm not wrong. Anyway, welcome to DEV!

code of conduct - report abuse