News

The length data property of a {{jsxref("String")}} value contains the length of the string in UTF-16 code units. The language specification requires strings to have a maximum length of 2 53 - 1 ...
The function should take two arguments, the first argument being the string and the second argument being the number of characters to truncate the string by. Truncated strings should end with an ...