Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- pm2 시작
- mosquitto.conf
- map이 undefined가 뜰 때
- c# datagridview 데이터 넣기
- 1883
- Replication
- 서버동기화
- mosquitto
- setInterval clear
- invalid data
- pm2 확인
- transfer
- html #select #option #multiple
- setInterval 정지
- setInterval 중지
- allow_anonymouse
- 맥 어드레스
- mySQL_Replication
- DatePicker
- listener 1883
- datagridview 직접입력
- pm2 상태 확인
- pm2 설치
- timepicker
- pm2
- setInterval 외부 정지
- 공인IP
- 데이터테이블 데이터 넣기
- AntDesign
- DataGridView 직접 입력
Archives
- Today
- Total
개발 노트
자바스크립트 객체 본문
// 객체의 키와 값을 정적으로 생성한다
const pet = {
name: "구름",
age: 8,
};
// 객체의 키와 값을 동적으로 생성한다
pet.color = "brown";
// 객체의 키와 값을 동적으로 제거한다!
delete pet.color;
// 출력
console.log(pet);
const object = {
ko: "빵",
en: "bread",
ja: "ㄹㄹ",
fr: "pain",
es: "pan",
lang: {
ko: "한국어",
en: `영어`,
ja: "일본어",
fr: "프랑스어",
es: "스페인어",
},
print: function (lang) {
console.log(`${this.ko}는 ${this.lang[lang]}로 ${this[lang]}입니다.`);
},
};
object.print("es");
'JavaScript' 카테고리의 다른 글
투두리스트 html,css,js (0) | 2022.01.03 |
---|---|
DOM은 무엇인가 (0) | 2022.01.02 |
[자바스크립트] 알림창코드, 함수연습코드 (0) | 2021.12.31 |
[자바스크립트]반복문,배열,객체 (0) | 2021.12.29 |
[자바스크립트]변수,타입,함수,조건문,문자열 (0) | 2021.12.29 |