자바스크립트에서 일반 함수와 Arrow 함수의 차이점, 언제 어떤 문법을 써야 하는가
------------------------------
- *자바스크립트 함수 선언* 은 function
키워드를 사용한 선언, *함수 표현식* , *화살표 함수* 등 다양한 방식이 존재함
- *함수 선언* 은 *호이스팅* 이 적용되어 코드의 어느 위치에서든 참조 가능함
- *Arrow(화살표) 함수* 는 *간결한 문법* 이 장점이지만, *this/arguments/super 바인딩이 없음* …
------------------------------
https://news.hada.io/topic?id=21993&utm_source=googlechat&utm_medium=bot&utm_campaign=1834
If you have a fediverse account, you can quote this note from your own instance. Search https://sns.lemondouble.com/notes/aa7gt04uwq on your instance and quote it. (Note that quoting is not supported in Mastodon.)