원시 타입

let x = 100;        
let y = x;    
x = 99;      
console.log(y); // 100 출력

참조타입

let x = {count: 100};  
let y = x;            
x.count=99;             
console.log(y.count); // 99 출력