본문 바로가기

Hello World...

검색하기
Hello World...
프로필사진 FaustK

  • 분류 전체보기 (91)
    • flutter (5)
    • javascript (15)
    • typescript (3)
    • node.js (8)
    • vue.js (8)
    • react.js (8)
    • nest.js (4)
    • aws (2)
    • git (2)
    • algorithm (2)
    • programming (8)
    • ChatGPT (6)
Guestbook
Notice
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • this
  • 클로저
  • jest
  • git pair
  • url #querystring
  • ESLint
  • #cloudfront #s3 #html 확장자 없애기
  • TypeScript
  • 객체참조 #객체
  • NPM
  • 기후변화
  • OOP
  • lightsail nodejs apache
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록객체참조 #객체 (1)

Hello World...

자바스크립트 객체 참조

자바스크립트 객체 참조. 객체 참조 const list = { head: null, tail: null }; let node = { value: 10, next: null }; list.tail = node; >> {value: 10, next: null} list.head = node; >> {value: 10, next: null} list.tail.next = {value: 2, next:null} >> {value: 2, next: null} list.head.next; >> {value: 2, next: null node 는 객체이므로 값 복사가 되는 것이 아니라 참조된다. list.tail 과 list.head 는 동일하게 node 객체를 가리키고 있다.

javascript 2020. 1. 2. 17:45
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바