ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • destructing
    NodeJs 2020. 1. 10. 21:27
    반응형
    const obj = {
    	title:'nodejs',
    	value:'노드'
    }
    
    //비구조화로 변환
    const {title,value} = obj
    
    //배열도 비구조화로 변환 할수있음. 자리수를 맞춰야한다.
    const arr = [1,2,3]
    const [,a,b] = arr
    반응형

    'NodeJs' 카테고리의 다른 글

    TDD - frameworks 소개  (0) 2020.01.10
    file  (0) 2020.01.10
    class 상속  (0) 2020.01.10
    class  (0) 2020.01.10
    arrow function  (0) 2020.01.10
Designed by Tistory.