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

https://www.codecademy.com/courses/introduction-to-javascript/lessons/advanced-objects/exercises/factory-functions

Hello house ,
please help on this one. thanks

const monsterFactory = (name, age, energySource, catchPhrase) => {
  return { 
    name: name,
    age: age, 
    energySource: energySource,
    scare() {
      console.log(catchPhrase);
    } 
  }
};

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