The Beginner’s Guide to JavaScript Strings
The JavaScript string is an object that represents a sequence of characters. There are 2 ways to create strings in JavaScript By string literal By string object (using new keyword) 1) By string literal The string literal is created using double quotes. The syntax of creating a string using string literal is given below Var …