[JavaScript] 문자의 연산

겨레·2025년 5월 21일

✔️ 문자의 연산

① 문자와 문자를 더할 때

alert("coding"+" everybody"); // 결과는 coding everybody

② 문자의 길이를 구할 때

alert("coding everybody".length) // 결과는 16
profile
호떡 신문지에서 개발자로 환생

0개의 댓글