카테고리 없음

[wecode/pre/Replit] 02. String - 02. getLengthOfWord

agnesofdeo 2022. 9. 1. 18:11
 Read.me 
# 02. getLengthOfWord

## Assignment

`fullName`에 이름을 넣어주세요.
- `fullName`의 길이를 console.log로 출력해주세요.
- 직접 계산하지 계산하지말고, length를 사용하여 길이를 구해주세요.

 index.js 
let fullName = 'leecoding'

console.log(fullName.length)
▶ 변수명.length
  ▷ 문자열의 길이를 구할 수 있음

 console 
9