Javascript String Object
A JavaScript String object represents a sequence of characters. How to create a Javascript string object: 1. By using string literals. 2. By using String() constructor. By using string literals: When we create a string literal browser automatically converts it to a String object. Syntax: var string1 = “value”; Example: <!DOCTYPE html> <html> <body> <script> … Read more