About 322,000 results
Open links in new tab
  1. JavaScript String (with Examples) - Programiz

    In JavaScript, string is a primitive data type that represents textual data. In this tutorial, you will learn about JavaScript strings with the help of examples.

  2. String - JavaScript | MDN - MDN Web Docs

    Apr 10, 2025 · Strings are useful for holding data that can be represented in text form. Some of the most-used operations on strings are to check their length, to build and concatenate them using the + and += string operators, checking for the existence or location of substrings with the indexOf() method, or extracting substrings with the substring() method.

  3. JavaScript Strings - W3Schools

    Normally, JavaScript strings are primitive values, created from literals: But strings can also be defined as objects with the keyword new: Do not create String objects. The new keyword complicates the code and slows down execution speed. String objects can produce unexpected results: Note the difference between (x==y) and (x===y).

  4. JavaScript Strings - GeeksforGeeks

    Mar 10, 2025 · JavaScript Strings – FAQs. What is a string in JavaScript? A string is a sequence of characters used to represent text. Strings are one of the fundamental data types in JavaScript and are enclosed in single quotes (‘), double quotes (“), …

  5. JavaScript String Methods - W3Schools

    Basic String Methods. Javascript strings are primitive and immutable: All string methods produce a new string without altering the original string.

  6. JavaScript String Exercise - GeeksforGeeks

    Apr 7, 2025 · JavaScript string is a primitive data type and is used for storing and manipulating a sequence of characters. It can contain zero or more characters within single or double quotes. This article contains a wide collection of JavaScript …

  7. Handling text — strings in JavaScript - Learn web development

    Apr 11, 2025 · HTML provides structure and meaning to text, CSS allows us to precisely style it, and JavaScript offers many features for manipulating strings. These include creating custom welcome messages and prompts, showing the right text labels when needed, sorting terms into the desired order, and much more.

  8. The JavaScript String Handbook – How to Work with Strings in JS

    Jan 5, 2024 · String manipulation is a crucial aspect of programming in JavaScript, enabling developers to transform, analyze, and present data effectively. The ability to manipulate strings efficiently empowers developers to craft robust and user-friendly applications.

  9. Strings - The Modern JavaScript Tutorial

    Jan 17, 2024 · In JavaScript, the textual data is stored as strings. There is no separate type for a single character. The internal format for strings is always UTF-16, it is not tied to the page encoding. Let’s recall the kinds of quotes. Strings can be enclosed within either single quotes, double quotes or backticks:

  10. JavaScript String Reference - GeeksforGeeks

    Apr 18, 2025 · There are two types of String methods in JavaScript. Static Method: If the method is called using the string class itself then it is called a static method. Create a string from the given sequence of UTF-16 code units. Return a string or an element for the given sequence of code point values (ASCII value).

Refresh