Login
Remember
Register
Ask a Question
How are JavaScript primitive/object types passed through functions?
0
votes
asked
Sep 20, 2021
in
JavaScript
by
sharadyadav1986
How are JavaScript primitive/object types passed through functions?
primitive-objects
object-types
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 20, 2021
by
sharadyadav1986
Primitive data types are passed By Value while Objects are passed By Reference.
By Value means that it develops a copy of the genuine or original sd if it is a twin.
By Reference means that it creates an ALIAS of the genuine or original. You can compare it with common nicknames.
...