NULL

typeof 데이터 확인하기 본문

Front-end/Vanilla JS

typeof 데이터 확인하기

1924 2021. 12. 5. 06:34
var a = "ads", b = 20, c = true;

console.log(a, typeof(a));
console.log(b, typeof(b));
console.log(c, typeof(c));

 

 

typeof를 쓰면 데이터를 확인할수있다.

'Front-end > Vanilla JS' 카테고리의 다른 글

자바스크립트 객체사용법  (0) 2021.12.05
javascript 이스케이프 문자  (0) 2021.12.05
prompt 입력  (0) 2021.12.05
슬라이더 코드 리뷰  (0) 2021.05.24
사용자 이름이 null?  (0) 2021.05.17
Comments