✏️6.7 변수 이름 바꾸기 (Rename Variable)
let a = height * width;let area = height * width;🧷 배경
🧷 절차
🧷 예시
let tpHd = "untitled";result += `<h1>${tpHd}</h1>`;tpHd = obj['articleTitle];🧷 예시: 상수 이름 바꾸기
Last updated
let a = height * width;let area = height * width;let tpHd = "untitled";result += `<h1>${tpHd}</h1>`;tpHd = obj['articleTitle];Last updated
result += `<h1>${tpHd}</h1>`;
function title() {return tpHd;} // tpHd 변수의 게터
function setTitle(arg) {tpHd = arg;} // 세터let _title = "untitle";
function title() {return _title;}
function setTitle(arg) {_title = arg;} const cpyNm = "애크미 구스베리";const companyName = "애크미 구스베리";
const cpyNm = companyName;