the murmurous sea

Objects and Arrays(yet done) 본문

#dev/개념정리

Objects and Arrays(yet done)

lunacer 2020. 5. 12. 17:22
  Objects Arrays functions
  are
: in JavaScript, an object is a standalone entity, with properties and type.
: containers for named values called properties or methods.
are 
: a special variable to store multiple values.
: "list-like objects"
: single objects that contain multiple values stored in a list.
 
    Array objects can be stored in variables  
    can access each value inside the list individually  
  - object = { property 1, property2, ......} 
- Property has name (or key) : value pair.
- A method is a function stored as a property
Array has an order  
  key : string. "" is necessary when it contains some spaces    
  property.key
property[key] 
: when the key has the spaces
: when want to set the key as a variable. 
   
prototype Object.prototype Array.prototype  
  www.developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects

www.w3schools.com/js/js_objects.asp

www.developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Arrays

https://www.w3schools.com/js/js_arrays.asp

 

'#dev > 개념정리' 카테고리의 다른 글

JS: Object.keys() & Object.values() & Object.entries()  (0) 2020.05.12
유사 배열 객체(empty)  (0) 2020.05.12
Object literal (empty)  (0) 2020.05.12
DOM: Element.innerHTML  (0) 2020.05.05
DOM: HTMLElement.innerText  (0) 2020.05.05
Comments