-
2023.3.8 returnFunction1일1알고리즘 2023. 3. 9. 22:54728x90반응형SMALL
returnFunction
문제
'Hello HoF!' 리턴하는 함수를 리턴해야 합니다.
입력
- 없음
출력
- 함수를 리턴해야 합니다.
주의 사항
- 리턴하는 함수의 입력값은 없습니다.
입출력 예시
let output = returnFunction(); console.log(output()); // --> 'Hello HoF!'
// 리턴펑션 함수는 함수를 리턴해야함
//리턴되는 함수는 'Hello HoF!' 를 리턴해야함
function returnFunction() {return function (){return 'Hello HoF!';};}728x90반응형LIST'1일1알고리즘' 카테고리의 다른 글
2023.3.20 compose2 (0) 2023.03.20 2023.3.17 compose (0) 2023.03.17 2023.3.16 applyTwice (0) 2023.03.16 2023.3.9 functionParameter (0) 2023.03.09 2023.3.7 transformFirstAndLast (0) 2023.03.07