About 10,800,000 results
Open links in new tab
  1. String: length - JavaScript | MDN

    Jul 10, 2025 · Description This property returns the number of code units in the string. JavaScript uses UTF-16 encoding, where each Unicode character may be encoded as one or two code …

  2. JavaScript String length Property - W3Schools

    Description The length property returns the length of a string. The length property of an empty string is 0.

  3. JavaScript - Length of a String - GeeksforGeeks

    Jul 23, 2025 · These are the following ways to Find the Length of a String in JavaScript: This approach directly utilizes the built-in length property of strings in JavaScript, which returns the …

  4. javascript - Understanding the .length property - Stack Overflow

    Dec 1, 2019 · Your .length property returns the length of the string. The string itself is a one-dimensional array with elements of the type character so using .length gives the size of the array.

  5. JavaScript String length (with Examples) - Programiz

    In this tutorial, you will learn about the JavaScript String length property with the help of examples. The JavaScript String length property returns the number of characters in a string.

  6. JavaScript: String length property - TechOnTheNet

    This JavaScript tutorial explains how to use the string property called length with syntax and examples. In JavaScript, length is a string property that is used to determine the length of a …

  7. JavaScript | Strings | .length | Codecademy

    Jun 20, 2021 · Calculates the total character count within a given string, including spaces and punctuation.

  8. JavaScript String length Property: String Length - CodeLucky

    Feb 5, 2025 · A comprehensive guide to the JavaScript String length property, explaining how to use it to determine the number of characters in a string.

  9. How to find the length of a string in Javascript

    The built‑in way to compute the length of a Javascript string is the read‑only length property on string instances. This property returns the number of characters in the string, including spaces, …

  10. How To Get The Length of a String in JavaScript - W3Schools

    Learn how to find the length of a string in JavaScript. The length property returns the length of a string: Read more about strings in our JavaScript Strings Tutorial. Read more about the length …