🔍The String object in JavaScript provides various properties and methods for working with strings.
🧱When using a string primitive in JavaScript, the JavaScript engine internally wraps it with the String object, allowing us to access properties and methods.
🔢The length property of a string returns the number of characters in the string.
🔀The split method allows us to split a string into an array of substrings based on a specified separator.
🏷️The trim method removes leading and trailing whitespace from a string.