String object in JavaScript is used to manipulated texts and characters. For example, it can be used to process names, addresses, cell phone numbers, ID, company names, product codes, serial numbers and more. In fact, strings are considered the building block of the JavaScript program, because the program statements or instructions comprise strings and characters.
A string is made up of letters , numbers and alphanumeric characters such as #,@,$,!,&,*,\,+,- and more. Similar to the objects mentioned in previous chapters, the string object also operates using various methods.