Can Parameter of an Object be a pass-by-reference into a method just like Objects?

Hello house ,
please help on this one. thanks

const monsterFactory = (name, age, energySource, catchPhrase) => {
  return { 
    name: name,
    age: age, 
    energySource: energySource,
    scare() {

In the above, parameter catchPhrase is passed into the method scare()?
Why is that?
What i read previously is that Object can be passed into a method which is known as Pass- by-
So is it then possible to pass the parameter of a Object as a pass-by- reference too?

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.