We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70a578c commit 96f9b12Copy full SHA for 96f9b12
1 file changed
1-js/05-data-types/03-string/3-truncate/solution.md
@@ -1,14 +1,10 @@
1
새로 만든 문자열의 길이는 `maxlength`가 되어야 하므로, 생략 부호 `"…"`가 차지할 길이를 생각하여 함수를 만들어야 합니다.
2
3
-<<<<<<< HEAD
4
-생략 부호는 유니코드에 등록된 독립된 글자임에 유의하여 답안을 작성해야 합니다. 점 세 개가 아님에 유의하시기 바랍니다.
5
-=======
6
-Note that there is actually a single Unicode character for an ellipsis. That's not three dots.
7
->>>>>>> upstream/master
+생략 부호는 유니코드에 등록된 하나의 문자입니다. 점 세 개가 아님에 유의하세요.
8
9
```js run demo
10
function truncate(str, maxlength) {
11
return (str.length > maxlength) ?
12
str.slice(0, maxlength - 1) + '…' : str;
13
}
14
-```
+```
0 commit comments