///////////////////////////////////////
// Introduction to Objects
const jonasArray = [
'Jonas',
'Schmedtmann',
2037 - 1991,
'teacher',
['Michael', 'Peter', 'Steven']
];
const jonas = {
firstName: 'Jonas',
lastName: 'Schmedtmann',
age: 2037 - 1991,
job: 'teacher',
friends: ['Michael', 'Peter', 'Steven']
};
'공부자료 > 자바스크립트' 카테고리의 다른 글
섹션 2 Javascript Fundamentals part 2 - Looping Arrays, Breaking and Continuing (0) | 2021.09.20 |
---|---|
섹션 2 Javascript Fundamentals part 2 - Iteration: The for Loop (0) | 2021.09.20 |
섹션 2 Javascript Fundamentals part 2 - Object Methods (0) | 2021.09.20 |
섹션 2 Javascript Fundamentals part 2 - Dot vs Bracket Notation (0) | 2021.09.20 |
섹션 2 Javascript Fundamentals part 2 - Basic Array Operations (0) | 2021.09.19 |