Skip to content

Commit 54c0141

Browse files
delete: duplicated slice(5, 5) example
1 parent d722c84 commit 54c0141

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

data/blog/software-development/web-development/frontend/javascript/slice-vs-substring-vs-substr-complete-javascript-string-methods-comparison.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ console.log(str.slice(4)); // "Script"
110110
// Example 4: Extract single character
111111
console.log(str.slice(0, 1)); // "J"
112112
// Explanation: Start at 0, end before 1, so only index 0 is included
113-
114-
// Example 5: Extract with same start and end
115-
console.log(str.slice(5, 5)); // "" (empty string)
116-
// Explanation: When start equals end, no characters are included (empty range)
117113
```
118114

119115
#### Negative Index

0 commit comments

Comments
 (0)