const number = 12345.6789; console.log(number.toFixed());
// “12346”
소수점 1의 자리에서 반올림 console.log(number.toFixed(2));
// “12345.68”
소수점 3의 자리에서 반올림 console.log(number.toFixed(6));
// “12345.678900” 빈 공간은 0으로 채워짐
: Object.entries(obj)
의 반대.
[[키, 값], [키, 값], [키, 값]] --> {키: 값, 키: 값, 키: 값}