How do Javascript primitive/object types passed in functions?



How do Javascript primitive/object types passed in functions?..

Answer / Mukesh Kumar Verma

JavaScript passes primitives by value, and objects (including arrays) are passed by reference.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Is javascript whitespace sensitive?

1 Answers  


How do you declare in javascript?

1 Answers  


How to detect browser name using JavaScript?

1 Answers  


What is the main difference between Map collections and other collections such as Set.

1 Answers  


Is javascript a security risk?

1 Answers  


How many types of variables are there in javascript?

1 Answers  


What is an enum

1 Answers  


Why is javascript so popular?

1 Answers  


What is stack queue?

1 Answers  


What are the three core languages in web pages?

1 Answers  


Can you explain how inheritance works in javascript?

1 Answers  


Which built-in method reverses the order of the elements of an array?

1 Answers  


Categories