JavaScript String() Constructor
In JavaScript, the String() constructor is used to create a new string object. It can be called with or without the new keyword. Syntax The syntax for using the String() constructor is as follows: Parameters Parameter Description value The value to be converted to a string. If no value is provided, an empty string is…