front-end/JavaScript

front-end/JavaScript

#1.4 Objects

객체 const player = { name: "gaeun"; poinst: 10; fat: true; }; console.log(player.name); // gaeun // how to fix player.fat(false); console.log(player.fat); // false // how to add plyaer.age(22);

front-end/JavaScript

#1.3 Arrays

배열 1. array 의 목적 - 하나의 variable 안에 데이터의 list를 가지는 것 2. How? const daysOfWeek = ["mon", "tue", "wed", "thu", "fri", "sat"]; // Add one more day to the array daysOfWeek.push("sun"); console.log(daysOfWeek[0]); //mon

front-end/JavaScript

#1.2 null vs. undefined

1. null - no value - variable 안에 어떤 값이 없다는 것을 확실히 하기 위해 사용 2. undefined - 메모리에 변수를 만들었음 - 하지만 값이 없음

front-end/JavaScript

#1.1 const and let

1. let let a = b; let a = c; // 재선언 금지 let a = b; a = c; // 재할당은 가능 2. const const a = b; const a = c; // 재선언 금지 const a = b; a = c; // 재할당 금지 3. var (구버전) var a = b; var a = c; a = c; // 재선언, 재할당 가능 ** always "const" ** sometimes "let" ** never "var"

gaan
'front-end/JavaScript' 카테고리의 글 목록 (7 Page)