본문 바로가기

강의메모

day 23 - 27

 

 

*

CLI : Command-Line Interface 명령줄 인터페이스 ex) cmd

GUI : Graphic User Interface

         - 사용자가 그래픽을 통해 컴퓨터와 정보를 교환하는 환경

 

 

 

*

javascript >> es5 에크마 스크립트 5(2016)

                      es8(2017)

 

 

 

 

* cosnt animals = ["lion", "tiger", "bear", "cat"];

  const animalSlice = animals.slice (1,3);

  console.log(animalSlice);

>> ["tiger", "bear"] 출력

>> slice(  ,  ) 두 번째 숫자는 'index - 1' 개념으로 알고있기!     

실제 인덱스는 0부터 시작하는데 slice 두번째의 경우 인덱스가 1부터 시작하는걸로 생각하면 될 듯!

 

 

 


 

 

 

*

Math.round / floor / ceil

        반올림 / 버림 / 올림

 

 

 

*

MDN >> sort

arr.sort([compare function]);

[ ]는 옵션

 

 

 

*

https://lodash.com/

 

Lodash

_.defaults({ 'a': 1 }, { 'a': 3, 'b': 2 });_.partition([1, 2, 3, 4], n => n % 2);DownloadLodash is released under the MIT license & supports modern environments. Review the build differences & pick one that’s right for you.InstallationIn

lodash.com

lodash library

 - array, object, collection에 특화된 라이브러리

 - array method 제공

 - _. 

 

 

 

 

* 배열 master하기! (!!!매우중요!!!)

 

 

 


 

 

  • 자바스크립트 "Event Loop"

Heap ; 메모리에 저장

Stack ; 함수 저장

            >> 후입선출 ; 나중에 들어온 것부터 빠져나온다.

                  (가장 나중에 들어오면 가장 위에 위치, 아래부터 쌓인다는 개념) 

WebAPIs ; 비동기 실행 함수들 따로 보관

Callback Queue ; 선입선출 ; 먼저 들어온 것부터 빠져나온다.

 

 

 

 

* '이벤트 캡쳐링 버블링'

 

 

 

'강의메모' 카테고리의 다른 글

22.0616~0620  (0) 2022.06.16
day 28  (0) 2022.06.09
day 20  (0) 2022.05.26
day 18  (0) 2022.05.25
day 17  (0) 2022.05.23