JS 노트(2-gram)

주재일·2021년 5월 15일
const word = "Javascript"

for(let i=0; i<word.length-1; i++){
  console.log(word[i], word[i+1])
}

J a 
a v 
v a 
a s 
s c 
c r 
r i 
i p 
p t 

신기해서 그냥 기록함..

profile
늦게 시작했으니 저는 늦둥이인가요?

0개의 댓글