Definition and Usage. In versions prior to Firefox 65, the maximum length was 2**28 - 1 (~256MB). The length property returns the length of a string (number of characters).
For an empty string, length is 0. In Firefox, strings have a maximum length of 2**30 - 2 (~1GB). The length of an empty string is 0. Previously, no maximum length was specified. JavaScript String - length Property - This property returns the number of characters in a string.
Copyright 2020 javascript string length