symbol은 유일성을 보장한다. //유일성 보장함 const sym1 = Symbol("test"); const sym2 = Symbol("test"); console.log(sym1 == sym2); //false console.log(sym1 === sym2); //false //전역변수처럼 사용할 수 있음 const sym3 = Symbol.for("test1"); const sym4 = Symbol.for("test1"); console.log(sym3== sym4); //true console.log(sym3 === sym4); //true const shop = { name:"ruru", type:"dessert" }; const showName =Symbol("show me"); shop[..