
//closer
const boo = (string)=>(name)=>(name2)=>
console.log(`string:${string} name:${name} name2:${name2}`);
boo('hi')('smallcow')('hello!');
//boo('hi) undifinde를 띄웁니다.
//boo('hi)('smallcow) undifinde를 띄웁니다.
//boo('hi')('smallcow')('hello!'); 위에서의 매개변수를 보관한 후, 사용합니다!
'Javascript' 카테고리의 다른 글
| parallel,race,sequencial (0) | 2021.07.25 |
|---|---|
| 교차함수 HOF (0) | 2021.07.08 |
| pass by value,by reference (0) | 2021.07.07 |
| this (0) | 2021.07.07 |
| JAVASCRIP는 동기식 언어 (0) | 2021.06.21 |