Skip to content

Commit d76d549

Browse files
authored
Update solution.md
1 parent 991d6b0 commit d76d549

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/05-data-types/03-string/3-truncate/solution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The maximal length must be `maxlength`, so we need to cut it a little shorter, to give space for the ellipsis.
1+
Panjang maksimum adalah `maxlength`, jadi kita perlu memotongnya menjadi lebih pendek, untuk memberi tempat bagi elipsis.
22

3-
Note that there is actually a single unicode character for an ellipsis. That's not three dots.
3+
Perlu diperhatikan bahwa elipsis hanyalah sebuah karakter unicode, bukan tiga karakter titik.
44

55
```js run demo
66
function truncate(str, maxlength) {

0 commit comments

Comments
 (0)