JavaScript: Truncate a string if it is longer than the specified number ...

JavaScript: Truncate a string if it is longer than the specified number ...

More to explore

Based on this image's title: “JavaScript: Truncate a string if it is longer than the specified number ...