About 129,000 results
Open links in new tab
  1. JavaScript String length Property - W3Schools

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

  2. 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 units, so it's …

  3. JavaScript - Length of a String - GeeksforGeeks

    Jul 23, 2025 · Another approach to determine the length of a given string in JavaScript is by utilizing the spread operator (...) along with the reduce () method. This method is less conventional but …

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

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

    Read more about strings in our JavaScript Strings Tutorial. Read more about the length property in our JavaScript String length Reference.

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

  7. JavaScript | Strings | .length | Codecademy

    Jun 20, 2021 · Syntax string.length; The string can either be a literal sequence of characters surrounded by quotes or a variable that refers to such a sequence. Example The following example outputs the …

  8. JavaScript String length Property - GeeksforGeeks

    Oct 29, 2024 · The JavaScript length property is a fundamental feature used to determine the number of characters in a string. It is essential for various string operations, such as validation, manipulation, …

  9. JavaScript String length - CodeToFun

    Oct 4, 2024 · The length property in JavaScript is a built-in property that returns the number of characters in a string. It's a simple and effective way to determine the size of a string, making it …

  10. JavaScript String length () Method – The Complete Guide

    In this guide, we will explore the length property, an essential tool for determining the number of characters in a string. This guide covers everything you need to know about the length property, from …