javascript 숫자인지 체크

hapwoo·2022년 8월 11일
0

Coding test

목록 보기
3/18

isNaN()

NaN == Not a Number

숫자가 아닐 경우 true 리턴, 숫자일 경우 false 리턴

isNaN('3')
// false

isNaN('abc')
// true
profile
프론트 개발자

0개의 댓글

Powered by GraphCDN, the GraphQL CDN