관리 메뉴

Silver Library (Archived)

JS - Array, call back function, scope chain 본문

CS Library

JS - Array, call back function, scope chain

Ayin Kim 2021. 7. 23. 17:02
반응형

1. https://developer.mozilla.org/ko/docs/orphaned/Web/JavaScript/Reference/Global_Objects/Array/Reduce

2. https://ko.wikipedia.org/wiki/%EC%9E%AC%EA%B7%80

3. https://im-developer.tistory.com/135

4. https://velog.io/@minidoo/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EC%BD%9C%EB%B0%B1-%ED%95%A8%EC%88%98Callback-Function

5. https://stackoverflow.com/questions/1047454/what-is-lexical-scope

6. https://ljtaek2.tistory.com/145

7. https://ljtaek2.tistory.com/140

 

- Callback function 은 함수 내부의 함수를 의미.

- Lexical environment 는, function 이 claim 된 그 시점에서 해당 function 은 무조건 global (window) 객체를 scoping 하고 있다는 사실.

 

- class 에서 언급되는 method 들은 (forEach, map, filter 등) 반복하되, 새로운 배열로 호출한다가 특징.

- 그리고, 원본 배열에는 변화가 없음.

 

The JavaScript splice() method modifies an array. It is used to add new elements to an array or remove or change existing ones.
...
splice() accepts three parameters:

  1. The index number to start at (required)
  2. The number of items in the array you want to remove (optional)
  3. Items to add to the list (optional)

https://developer.mozilla.org/ko/docs/orphaned/Web/JavaScript/Reference/Global_Objects/Array/splice

 

And what is item? This topic belongs to array.

https://developer.mozilla.org/ko/docs/orphaned/Web/JavaScript/Reference/Global_Objects/Array

 

 

 

 

 

etc.

https://mber.tistory.com/14