So, we know that value of variables that contain objects in javascript are passed by reference. for example:
let a = {name:\'john\'}; let b = a; a.name = \'do