in JS, arguments are always passed by value.
JS ⟩ value ⟩ function ⟩ argument ⟩ pass-by-value
In JS, arguments are always passed by value. (that is, copied)
JavaScript Tutorial ⟩ Understanding JavaScript Pass-By-Value
Last updated 2 years ago