AJAX JAVASCRIT CALL BY METODE Contoh

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

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

increaseAge(person);

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