W3Schools
w3schools.com › jsref › jsref_substring.asp
JavaScript String substring() Method
The substring() method does not change the original string. If start is greater than end, arguments are swapped: (4, 1) = (1, 4). Start or end values less than 0, are treated as 0. ... If you want to use W3Schools services as an educational ...
W3Schools
w3schools.com › jsref › jsref_substr.asp
JavaScript String substr() Method
substr() is an ECMAScript1 (JavaScript 1997) feature. It is supported in all browsers: ❮ Previous JavaScript String Reference Next ❯ · ★ +1 · Sign in to track progress · REMOVE ADS · PLUS · SPACES · GET CERTIFIED · FOR TEACHERS ...
W3Schools
w3schools.com › js › js_string_methods.asp
JavaScript String Methods
The substr() method is removed (deprecated) in the latest JavaScript standard.
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › String › substring
String.prototype.substring() - JavaScript | MDN
If indexEnd is omitted or undefined, substring() extracts characters to the end of the string.
W3Schools
w3schools.com › jsref › tryit.asp
W3Schools online HTML editor
The W3Schools online code editor allows you to edit code and view the result in your browser
W3Schools
www-db.deis.unibo.it › courses › TW › DOCS › w3schools › jsref › jsref_substring.asp.html
JavaScript String substring() Method
The substring() method extracts the characters from a string, between two specified indices, and returns the new sub string.
W3Schools
w3schools.sinsixx.com › jsref › jsref_substring.asp.htm
JavaScript substring() Method - SinSiXX - W3Schools
Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building.
W3Schools
www-db.deis.unibo.it › courses › TW › DOCS › w3schools › jsref › jsref_substr.asp.html
JavaScript String substr() Method
The substr() method extracts parts of a string, beginning at the character at the specified position, and returns the specified number of characters.
W3Schools Blog
w3schools.blog › home › javascript string substring() method
JavaScript String substring() method - W3schools
June 1, 2019 - <!DOCTYPE html> <html> <body> <script> var a ="HELLO WORLD!"; document.write(a.substring(0,5)); </script> </body> </html>
W3Schools Blog
w3schools.blog › home › javascript string substr() method
JavaScript String substr() method - W3schools
June 1, 2019 - <!DOCTYPE html> <html> <body> <script> var a ="HELLO WORLD!"; document.write(a.substr(0,5)); </script> </body> </html>
W3Schools
w3schoolsua.github.io › js › js_string_methods_en.html
JavaScript String Methods. Examples. Lessons for beginners. W3Schools in English
If you omit the second parameter, substring() will slice out the rest of the string.
W3Schools
w3schools.com › jsref › jsref_split.asp
JavaScript String split() Method
The split() method splits a string into an array of substrings. The split() method returns the new array. The split() method does not change the original string. If (" ") is used as separator, the string is split between words.
JavaScript Tutorial
javascripttutorial.net › home › javascript string methods › string.prototype.substring()
JavaScript Substring(): Extract a Substring from a String
November 3, 2024 - In this tutorial, you'll learn how to use the JavaScript substring() method to extract a substring from a string.
W3Schools
w3schools.com › jsref › jsref_slice_string.asp
JavaScript String slice() Method
The substring() Method · string.slice(start, end) From position 3 to 8: let result = text.slice(3, 8); Try it Yourself » · Only the first character: let result = text.slice(0, 1); Try it Yourself » · Only the last character: let result = text.slice(-1); Try it Yourself » · The whole string: let result = text.slice(0); Try it Yourself » · JavaScript Strings ·
W3Schools
w3schools.com › jsref › jsref_sub.asp
JavaScript String sub() Method
String sub() is deprecated in JavaScript. Avoid using it. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com
Mimo
mimo.org › glossary › javascript › substring
JavaScript Substring Method: Learn String Extraction
Learn JavaScript's substring() method to extract parts of strings effortlessly. Explore practical use cases like text processing, email validation, and previews.
TechOnTheNet
techonthenet.com › js › string_substring.php
JavaScript: String substring() method
This JavaScript tutorial explains how to use the string method called substring() with syntax and examples. In JavaScript, substring() is a string method that is used to extract a substring from a string, given start and end positions.
Codecademy
codecademy.com › docs › javascript › substring
JavaScript | Substring | Codecademy
May 29, 2025 - The .substring() method in JavaScript extracts a portion of a string from one position to another (exclusive) and returns a new string.