trim.length

박범준·2021년 7월 30일
0

console.log(txt.trim().length);
prompt로 입력을 받을경우 앞뒤 띄어쓰기 제거후 길이 확인 등 비교등에 활용

profile
HTML/CSS/JAVASCRIPT

0개의 댓글