Javascript is pass-by-value, but sometimes the value itself is the reference.
In case of arrays and objects, Javascripts mimics the behaviour of pass-by-reference. See it being explained with a nice Harry Potter example.
In questa pagina del sito puoi guardare il video online Pass by Value and Pass by Reference in Javascript della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Coding Blocks 30 giugno 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 7,439 volte e gli è piaciuto 96 spettatori. Buona visione!