✏️9.1 변수 쪼개기 (Split Variable)
let temp = 2 * (height + width);
console.log(temp);
temp = height * width;
console.log(temp);const perimeter = 2 * (height + width);
console.log(perimeter);
const area = height * width;
console.log(area);🧷 배경
🧷 절차
🧷 예시: 입력 매개변수의 값을 수정할 때
Last updated