본문 바로가기

Programming/JavaScript

Introduction to Objects

In JavaScript, an object is an unordered collection of key-value pairs. Each key-value pair is called a property. The key of a property can be a string. And the value of a property can be any value, e.g., a string, a number, an array, and even a function. JavaScript provides you with many ways to create an object.

https://www.javascripttutorial.net/javascript-objects/

 

JavaScript Objects

In this tutorial, you will learn about JavaScript objects and how to manipulate objects' properties effectively.

www.javascripttutorial.net

const sunnyArray = [
    'Sunny',
    'Ryu',
    2022 - 1988,
    'technical writer',
    ['Writing', 'Coding', 'Learning']
];

const sunny = {
    firstName: 'Sunny',
    lastName: 'Ryu',
    age: 2022 - 1988,
    job: 'technical writer',
    hobbies: ['Writing', 'Coding', 'Learning']
};

 

'Programming > JavaScript' 카테고리의 다른 글

Object Methods  (0) 2022.09.15
Dot vs. Bracket Notation  (0) 2022.09.11
Coding Challenge #2 - tip calculator with arrays  (0) 2022.09.10
Basic Array Operations (Methods)  (0) 2022.09.10
Introduction to Arrays  (0) 2022.09.10