자바스크립트) 객체(object)-속성(property)-키(key)-값(value)
const John = { age: 21, nation: America, sex: male, height: 175cm, weight: 65kg }; 객체(object): 위의 {}덩어리 Property(속성): 속성=키:값 age: 21,nation: America, sex: male, height: 175cm, weight: 65kg. (*속성값이 함수인 것을 메소드라고 특별히 따로 부름)) Key(키): age, nation, sex, height, weight (키는 문자열만 가능) Value(값): 21, America, male, 175cm, 65kg (속성값은 어떤 값이든지 상관없음. 문자열이어도 되고, 숫자여도 되고, 객체여도 가능. 단, 객체의 value와 input의 value는 다른 개..
2021. 7. 29.