SOURCE

let name = 'ConardLi';
function changeValue(name){
  name = 'code秘密花园';
}
changeValue(name);
console.log(name);


let obj2 = { name: 'ConardLi' };
function changeValue2(obj2) {
  obj2.name = 'code秘密花园';
}
changeValue(obj2);
console.log(obj2.name);
console 命令行工具 X clear

                    
>
console