0 votes
in JavaScript by
How are JavaScript primitive/object types passed through functions?

1 Answer

0 votes
by

Primitive data types are passed By Value while Objects are passed By Reference.

  1. By Value means that it develops a copy of the genuine or original sd if it is a twin.
  2. By Reference means that it creates an ALIAS of the genuine or original. You can compare it with common nicknames.

Related questions

0 votes
asked Feb 6, 2020 in JavaScript by rajeshsharma
0 votes
asked Apr 21, 2022 in Scala Constructs by sharadyadav1986
...