[JS] 03. String

수리·2022년 9월 6일
0

3.1 getFullName

console.log("Hello, " + "World")

3.2 getLengthOfWord

let fullName="콤부차 Developer"

console.log(fullName.length);

3.3 averageLength

let word1 = 'tree'
let word2 = 'assignment'
let length1=word1.length
let length2=word2.length

console.log( (length1+length2) / 2 )

//결과값은 7
profile
웹개발 공부 스터디로그

0개의 댓글