About 52 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-used characters, …

  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 string or a …

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

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

    Dec 1, 2019 · 5 JavaScript exhibits zero based indexing, that is, the first element in an array or in a string is at position 0. Therefore, an array or string of length n has elements going from position 0 to …

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

    Nov 15, 2014 · 5 Array in JavaScript is not a real Array type but it's an real Object type. [].length is not being recalculated every time, it is being operated by ++ or -- operators. See below example which is …

  7. Find length (size) of an array in JavaScript - Stack Overflow

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

  8. 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 the number of …

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

    Jun 15, 2012 · 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?

  10. How can I find the count of digits of a number? - Stack Overflow

    I'm looking to get the count of digits of a number in JavaScript or jQuery? I've tried value.length without any success, do I need to convert this to a string first?