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.
...