Pass by reference

Can i pass a primitive variable by reference into a function ? If i can tell me syntax.

function PassbyReference(obj) {
let tmp = obj.a;
obj.a = obj.b;
obj.b = tmp;

console.log(Inside Pass By Reference Function -> a = ${obj.a} b = ${obj.b});
}

let obj = {
a: 10,
b: 20

}

console.log(Before calling Pass By Reference Function -> a = ${obj.a} b = ${obj.b});

PassbyReference(obj)

console.log(After calling Pass By Reference Function -> a = ${obj.a} b = ${obj.b});

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.