Object

Object?

Any function, array, or regular expression is an object except primitive type. Thus, an object is a set of properties and methods that represent the actions that can be referenced.

Object Use

Multiple values ​​can be grouped (objects) into a single value. In addition, objects can be stored in one memory names, and it can assign it to a variable.

var user = {
    name: 'lee',
    location: 'Seoul',
    greeting: function(){
        console.log('hello! ${this.name}') 
    }

Object Value

An object is a collection of properties, and all values ​​in JavaScript can be used as values ​​for properties. If the value is a function, it is called a Method to distinguish it from a normal function.

Object / Reference Type

It is a complex data structure composed of various types of values ​​that can be changed in one unit. (Data Structure)

Last updated

Was this helpful?