isNaN 함수 사용!

const number = 123;
const text = '123';
// isNaN 사용

isNaN(number) // false
isNaN(text) // true

number 값이 아닐 때 true출력

+ Recent posts