Skip to content

Commit 9ec34c6

Browse files
authored
Replace assignment with equals in Truncate the text task
Replace the assignment operator `=` with the equality comparison `==` in both examples in the 'Truncate the text' task.
1 parent 5ab1ce2 commit 9ec34c6

File tree

1 file changed

+2
-2
lines changed
  • 1-js/05-data-types/03-string/3-truncate

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The result of the function should be the truncated (if needed) string.
1111
For instance:
1212

1313
```js
14-
truncate("What I'd like to tell on this topic is:", 20) = "What I'd like to te…"
14+
truncate("What I'd like to tell on this topic is:", 20) == "What I'd like to te…"
1515

16-
truncate("Hi everyone!", 20) = "Hi everyone!"
16+
truncate("Hi everyone!", 20) == "Hi everyone!"
1717
```

0 commit comments

Comments
 (0)