강의

멘토링

로드맵

Inflearn Community Q&A

dok6n's profile image
dok6n

asked

Data Structures and Algorithms Made Easy with Diagrams (Basics)

Thinking Recursively

strLength에서

Resolved

Written on

·

354

·

Edited

1

arr[0] == null

위 상황에서 arr[0]인 ''[0]은 undefined라서 니깐

 

!!arr[0]나 Boolean(arr[0]) 아니면 그냥 !!arr, Boolean(arr)

로 체크해주는게 좋을것 같네여

알고리즘

Answer 1

0

gamja5님의 프로필 이미지
gamja5
Instructor

안녕하세요 ehrbs2018님!

말씀해주신 방법이 더 좋은 방법인 것 같네요 ㅎㅎ

피드백 감사합니다! 👍

dok6n's profile image
dok6n

asked

Ask a question