Ajax Javascrit Call by Value Method EXEMPLE

let person = {
  name: 'John',
  age: 25,
};

function increaseAge(obj) {
  obj.age += 1;
}

increaseAge(person);

console.log(person);
Code language: JavaScript (javascript)
Sparkling Shrew