목록assign (1)
codinghatso
/** * Objects * one of the JavaScript's data types. * a collection of related data and/or functionality. * Nearly all objects in JavaScript are instances of Object * object = {key : value}; */ // 1. Literals and properties const obj1 = {}; // 'object literal' syntax const obj2 = new Object(); //'object constructor' syntax function print(person) { console.log(person.name); console.log(person.age)..
WEB/JavaScript Diary
2022. 1. 25. 15:11