• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in JavaScript by
Q:
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 Oct 19, 2019 in JavaScript by SakshiSharma
0 votes
asked Feb 6, 2020 in JavaScript by rajeshsharma
...