Pass by value pass by reference Javascript

preview_player
Показать описание
[If you want to get technical] Javascript is always pass by value, but when you pass in an object, the VALUE is a reference to an object.
Рекомендации по теме
Комментарии
Автор

Hey, LINUXANDCHILL (great name, btw), currently studying JS questions for interviews. This was best explanation I've found on the topic. Great work. Thanks for being so clear.

billyphillips
Автор

Good job explaining but what's the point of using pass by reference/value? We could change property values/keys can be changed in dot notation + [ ]

cornholio
Автор

OH DAMN IT THAT KEYBOARD IS HARD TO PRESS I GUESS

kylemods