About 2,270,000 results
Open links in new tab
  1. JavaScript Strings Object - Online Tutorials Library

    JavaScript strings can be created as objects using the String() constructor or as primitives using string literals. Use the following syntax to create a String object −. var val = new String(value); …

  2. JavaScript Strings - GeeksforGeeks

    Mar 10, 2025 · An object in JavaScript is a collection of key-value pairs, where keys are strings (properties) and values can be any data type. Objects can be created using object literals, …

  3. 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.

  4. String - JavaScript | MDN - MDN Web Docs

    Apr 10, 2025 · Strings can be created as primitives, from string literals, or as objects, using the String() constructor: String primitives and string objects share many behaviors, but have other …

  5. Javascript String Object - W3schools

    How to create a Javascript string object: 1. By using string literals. 2. By using String() constructor. By using string literals: When we create a string literal browser automatically converts it to a …

  6. Difference between the javascript String Type and String Object?

    Strings are a value type in JS, so they can't have any properties attached to them, no prototype, etc. Any attempt to access a property on them is technically performing the JS [ [ToObject]] …

  7. Strings in JavaScript (with examples) | Code Underscored

    Feb 14, 2022 · Checking the length of a string, building and concatenating it with the plus and += string operators, checking for substrings’ existence or location with the indexOf () method, and …

  8. JavaScript String Object: Working with Strings - CodeLucky

    Feb 6, 2025 · This guide provides an in-depth look at the JavaScript String object, its properties, methods, and how to use them effectively. What is the JavaScript String Object? In JavaScript, …

  9. JavaScript String Properties and Methods - Tutorial Republic

    This chapter contains a brief overview of the properties and method of the global String object. The JavaScript String object is a global object that is used to store strings. A string is a …

  10. The String Object - Learning JavaScript [Book] - O'Reilly Media

    As this example demonstrates, the String methods can be used with a string literal, as well as a String object. The JavaScript engine converts the variable to an object, calls the method, and …

Refresh