About 51 results
Open links in new tab
  1. javascript - How do you get the length of a string using jQuery ...

    Jun 25, 2009 · UTF-16, the string format used by JavaScript, uses a single 16-bit code unit to represent the most common characters, but needs to use two code units for less commonly …

  2. How does String.length work in JavaScript? - Stack Overflow

    JavaScript automatically converts primitives to String objects, so that it's possible to use String object methods for primitive strings. In contexts where a method is to be invoked on a primitive …

  3. Length of a JavaScript object - Stack Overflow

    Aug 8, 2008 · 38 This method gets all your object's property names in an array, so you can get the length of that array which is equal to your object's keys' length.

  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. Find length (size) of an array in JavaScript - Stack Overflow

    Find length (size) of an array in JavaScript Asked 14 years, 11 months ago Modified 2 years, 11 months ago Viewed 348k times

  6. How to check string length in JavaScript? - Stack Overflow

    Oct 22, 2015 · How can I check the length of in String in JavaScript? Here is a small code example:

  7. Javascript how `length` is implemented - Stack Overflow

    Nov 15, 2014 · The length property of this Array object is a data property whose value is always numerically greater than the name of every deletable property whose name is an array index.

  8. What does "array.length -1" mean in JavaScript? - Stack Overflow

    I know how to use the JavaScript for loops to cycle through arrays for example, but I still didn't understand what the array.length -1 means, specifically the -1 part. When using a for loop over …

  9. javascript - Array.size () vs Array.length - Stack Overflow

    May 25, 2017 · Underscore.js unfortunately defines a size method which actually returns the length of an object or array. Since unfortunately the length property of a function is defined as …

  10. How to check string length with JavaScript - Stack Overflow

    Dec 8, 2013 · I want to get the string length when a key is pressed like StackOverflow does. I have tried to do this with onblur, but it's not working. How do I do this?