SOURCE

let name = 'ConardLi';

function changeValue(name){
  name = 'code秘密花园';
}

changeValue(name);

console.log(name);

let obj = { name: 'ConardLi' };

function changeValue2(obj) {
    obj.name = 'code秘密花园2';
}

changeValue2(obj)
console.log(obj.name)

let obj3 = {};
function changeValue3(obj) {
    obj.name = 'ConardLi3';
    obj = {name: 'code秘密花园3'};
}

changeValue3(obj3);
console.log(obj3.name)

console 命令行工具 X clear

                    
>
console