Skip to content

Commit 6a0c940

Browse files
jtrimindViolet-Bora-Lee
authored andcommitted
[문자열] 코드예제 오타 수정
length는 프로퍼티이므로 괄호를 붙이면 안됨
1 parent 0fa816e commit 6a0c940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ alert( `역슬래시: \\` ); // 역슬래시: \
131131
`length` 프로퍼티엔 문자열의 길이가 저장됩니다.
132132

133133
```js run
134-
alert( `My\n`.length()); // 3
134+
alert( `My\n`.length ); // 3
135135
```
136136

137137
`\n`은 "특수 문자" 하나로 취급되기 때문에 `My\n`의 길이는 `3`입니다.

0 commit comments

Comments
 (0)