๐ŸŒ
W3Schools
w3schools.com โ€บ js โ€บ js_string_methods.asp
JavaScript String Methods
The at() method returns the character at a specified index (position) in a string. The at() method is supported in all modern browsers since March 2022: ... The at() method is a new addition to JavaScript.
๐ŸŒ
Programiz
programiz.com โ€บ javascript โ€บ library โ€บ string
JavaScript String Methods | Programiz
JavaScript automatically converts ... you will find all String methods and properties available in JavaScript. For example, the toUpperCase() method returns the string converted to uppercase....
Discussions

JavaScript String Methods That Make Developer's Life Easier
๐ŸŒ r/developer
22 Javascript String Methods ๐Ÿ”ฅ
Be careful when using String#length, some unicode characters count for 2. Take "๐Ÿ”ฅ" for example. Splitting this string in half will break the emoji. More on reddit.com
๐ŸŒ r/learnjavascript
9
201
November 3, 2020
Essential JavaScript String Methods
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String More on reddit.com
๐ŸŒ r/node
10
10
September 19, 2018
7 Methods To Check If A String Contains A Substring In Javascript
check if a string contains a substring in javascript (in ES6): var I mean... I don't feel lodash or underscore are valid for this article. You're listing ways to check if a string has a substring, not external libraries that check that. Also, #7 has a typo: Syntax of includes method is include(string, substring) Should be includes. More on reddit.com
๐ŸŒ r/learnjavascript
1
0
February 18, 2019
๐ŸŒ
Hashnode
codeswithpayal.hashnode.dev โ€บ mastering-javascript-string-methods-with-real-life-examples
Mastering JavaScript String Methods with Real-Life Examples
September 16, 2025 - Use trim() to clean up input. These methods are must-know for every JavaScript developerโ€”from beginners to professionals. Joins (merges) two or more strings together. ... let firstName = "John"; let lastName = "Doe"; console.log(firstName.concat(" ...
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ String
String - JavaScript - MDN Web Docs
May 22, 2026 - String literals can be specified using single or double quotes, which are treated identically, or using the backtick character `. This last form specifies a template literal: with this form you can interpolate expressions. For more information on the syntax of string literals, see lexical grammar. There are two ways to access an individual character in a string. The first is the charAt() method:
๐ŸŒ
Medium
medium.com โ€บ @dimplekumari0228 โ€บ 13-most-common-javascript-string-methods-you-should-know-about-2d4f0e32f701
13 Most Common JavaScript String Methods You Should Know About | by Dimple Kumari | Medium
March 16, 2024 - If you want to replace a specified substring with another string, then you can use the replace() method. const str = "JavaScript is amazing!"; const replacedStr = str.replace("amazing", "awesome"); console.log(replacedStr); // Output: JavaScript is awesome! You can convert a string into an array using the split() method. const str1 = "JavaScript is amazing!"; const arr1 = str1.split(); console.log(arr1); // Output: ['JavaScript is amazing!'] //Example:2 const str2 = "JavaScript is amazing!"; const arr2 = str2.split(" "); console.log(arr2); // Output: ['JavaScript', 'is', 'amazing!']
๐ŸŒ
W3Schools
w3schoolsua.github.io โ€บ js โ€บ js_string_methods_en.html
JavaScript String Methods. Examples. Lessons for beginners. W3Schools in English
The method takes 2 parameters: the start position, and the end position (end not included). Slice out a portion of a string from position 7 to position 13 (13 not included): let str = "Apple, Banana, Kiwi"; let part = str.slice(7, 13); Try it Yourself ยป ยท JavaScript counts positions from zero. First position is 0. Second position is 1. If a parameter is negative, the position is counted from the end of the string. This example slices out a portion of a string from position -12 to position -6:
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript โ€บ javascript-string-methods
JavaScript String Methods - GeeksforGeeks
split() splits the string into an array of sub-strings. This method returns an array.
Published ย  June 1, 2026
๐ŸŒ
Medium
medium.com โ€บ @Karthikshetty26 โ€บ javascript-string-methods-in-detail-d678cb0bbe2a
JavaScript String Methods | In detail | by Karthik Shetty | Building with AI | Medium
August 11, 2023 - With this method, you can check whether a string starts with a given substring. Optionally, you can specify a position from which to start the check. For example, you can check if a string begins with "Hello" using startsWith("Hello").
Find elsewhere
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ javascript-string-tutorial-string-methods-in-js
JavaScript String Tutorial โ€“ String Methods in JS
March 10, 2023 - Also, they do not have any methods or properties. For your knowledge, there is another way to create strings in JavaScript, which is via the String() constructor. The String() constructor generates a string as an object (when called with new). If called as a function (str2 in the example below), the value is coerced to a primitive string.
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Learn_web_development โ€บ Core โ€บ Scripting โ€บ Useful_string_methods
Useful string methods - Learn web development | MDN
Now that we've looked at the very ... strings with built-in methods, such as finding the length of a text string, joining and splitting strings, substituting one character in a string for another, and more. Most values can be used as if they are objects in JavaScript.
๐ŸŒ
W3Schools
www-db.deis.unibo.it โ€บ courses โ€บ TW โ€บ DOCS โ€บ w3schools โ€บ js โ€บ js_string_methods.asp.html
JavaScript String Methods
There are 3 methods for extracting a part of a string: ... The method takes 2 parameters: the starting index (position), and the ending index (position). This example slices out a portion of a string from position 7 to position 13:
๐ŸŒ
Programiz
programiz.com โ€บ javascript โ€บ string
JavaScript String (with Examples)
Another way is to supply the position of the character to the charAt() method. For example, let message = "hello"; // use charAt(1) to get the // 2nd character of message console.log(message.charAt(1)); // e ยท Here, the code message.charAt(1) gives us the character at index 1 of the message string. JavaScript strings have some interesting features.
๐ŸŒ
JavaScript Tutorial
javascripttutorial.net โ€บ home โ€บ javascript string methods
JavaScript String Methods
November 4, 2024 - endsWith() โ€“ determine if a string ends with another string. This section introduces the string trimming methods that allow you to remove unwanted whitespace characters from a string, ensuring your text is clean and well-formatted.
๐ŸŒ
Markoskon
markoskon.com โ€บ javascript-string-methods
JavaScript string methods | Dev Diary
Use String.prototype.search() if you want less details, for example, to see only if the pattern exists, and to get the index of the first match. There is also the RegExp.prototype.test() for simple checks and the RegExp.prototype.exec() which ...
๐ŸŒ
Cybrosys Technologies
cybrosys.com โ€บ odoo blogs
15 JavaScript String() Methods with Examples
October 10, 2022 - In this blog, letโ€™s discuss the various string methods used in Java Script.
๐ŸŒ
Edureka
edureka.co โ€บ blog โ€บ javascript-string-functions
20 JavaScript String Functions | String() Methods with Examples | Edureka
February 11, 2025 - Learn about the most commonly used string functions in JavaScript. It will provide in-depth knowledge about different functions with the syntax and example.
๐ŸŒ
Quora
quora.com โ€บ What-are-the-JavaScript-String-methods-and-its-uses-with-examples
What are the JavaScript String methods and its uses with examples? - Quora
Answer (1 of 2): * JavaScript string methods are used to perform certain operations on each character in strings. * To extract certain characters,to capitalize etcโ€ฆ. * Let me share some examples. * This is PolaCode extension from VSCode.
๐ŸŒ
MakeUseOf
makeuseof.com โ€บ home โ€บ programming โ€บ 10 javascript string methods you should master today
10 JavaScript String Methods You Should Master Today
June 27, 2021 - Once again, the index value ranges from 0 to length - 1 and if you try to pass an index beyond the permissible limit, this method will return -1. As the name suggests, the replace() method helps you substitute one part of the string with another part. This method takes two arguments: the first one is the substring to be replaced, and the second one is the substring to be replaced with. This method does not make any modification to the original string. ... For example, if you want to replace the word MUO with this website in the string variable, you can use the replace() method like this:
๐ŸŒ
Flexiple
flexiple.com โ€บ javascript โ€บ javascript-string-methods-cheat-sheet
JavaScript String Methods Cheat Sheet - Flexiple
String literals and strings returned from String calls are primitive strings. In contrast, in contexts where a method is invoked on a primitive string, JavaScript automatically wraps the string primitive and calls the method. Here are a few examples where we can see strings are being used:
๐ŸŒ
Web Reference
webreference.com โ€บ javascript โ€บ basics โ€บ string-methods
JavaScript String Methods Explained
In JavaScript, strings can be defined ... in the examples using Template Literals. let myString = 'Hello, World!'; let myOtherString = "I love JavaScript!"; Strings are immutable, meaning that once a string is created, it cannot be changed. Instead, if you need to modify a string, you must ...