Skip to content

Commit 2c58318

Browse files
fix: Browser Compatibility
1 parent 95f0080 commit 2c58318

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,9 +1105,9 @@ console.timeEnd('substr');
11051105

11061106
All three methods are widely supported:
11071107

1108-
- **slice()**: Supported in all modern browsers (IE4+), part of ECMAScript 3 standard
1109-
- **substring()**: Supported in all modern browsers (IE3+), part of ECMAScript 1 standard
1110-
- **substr()**: Supported but deprecated (IE3+, but should not be used), not part of ECMAScript standard
1108+
- **`slice()`**: Supported in all modern browsers (IE4+), part of ECMAScript 3 standard
1109+
- **`substring()`**: Supported in all modern browsers (IE3+), part of ECMAScript 1 standard
1110+
- **`substr()`**: Supported but deprecated (IE3+, but should not be used), not part of ECMAScript standard
11111111

11121112
For modern JavaScript development, `slice()` is the recommended choice as it's part of the ECMAScript standard and has the most intuitive behavior.
11131113

0 commit comments

Comments
 (0)