2 ms·
Can you fix your first statement: "JavaScript passes everything by reference" which is incorrect? see: https://jsfiddle.net/t73ykuj0/ https://jsfiddle.net/t73y
by shkkmo 9y ago
Can you fix your first statement:
"JavaScript passes everything by reference" which is incorrect?
see:
https://jsfiddle.net/t73ykuj0/ https://jsfiddle.net/t73ykuj0/
- zakember 9y agoCan you please explain why this behavior is happening in this jsfiddle, or point me to a link that can help me understand this better?
- shkkmo 9y agoThe term for what Javascript does is pass-reference-by-value or pass-by-sharing: https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_sharing https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_sh...