let a = 1, let b = 2
[a,b] = [b,a]
const array = Array.from(new Array(5), (_,k) => k+5)
const nums = [1,1,1,1,1,2]
1. const new1 = Array.from(new Set(nums))
2. const new2 = [...new Set(nums)]
const a = {name : 'sehoon'}
const b = {height : 180}
const c = {...a, ...b}
console.log(c) => {name : "sehoon", height:180}
const {name, height} = c
const nameKey = "name"
const emailKey = "email"
const person = {
[nameKey] : "kang-sehoon",
[emailKey] : "gsh723@naver.com"
}
값을 boolean 값으로 변경할 수 있다.