Skip to content

Commit 60068cd

Browse files
fix: js extract a substring multiple choice code example (freeCodeCamp#57555)
1 parent 169af06 commit 60068cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

curriculum/challenges/english/25-front-end-development/lecture-working-with-common-string-methods/67326c15b3b2f0c5827927cc.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ What will the following code output?
1818

1919
```js
2020
let text = "JavaScript is awesome!";
21-
let result = text.slice(0, 10);
21+
let result = text.slice(0, 9);
2222

2323
console.log(result);
2424
```
@@ -97,7 +97,7 @@ What will the following code return?
9797

9898
```js
9999
let sentence = "Learning JavaScript is fun!";
100-
let extracted = sentence.slice(9, -4);
100+
let extracted = sentence.slice(9, -5);
101101

102102
console.log(extracted);
103103
```

0 commit comments

Comments
 (0)