ideas flow out of brain
Random header image... Refresh for more!

if절 안의 false 조건

자바스크립트에서는 if절 안에 아무거나 다 들어갈 수 있다. 그럼 0, null, false, undefined가 아닌 경우에도 false가 될까? 테스트를 해보니 널스트링인 경우 false가 된다. 항상 널스트링을 따로 검사했었는데 그럴 필요가 없었다.

0 comments

There are no comments yet...

Kick things off by filling out the form below.

Leave a Comment