The JavaScript string is an object that represents a sequence of characters.
There are 2 ways to create string in JavaScript
- By string literal
- By string object (using new keyword)
By string literal
The string literal is created using double quotes. The syntax of creating string using string literal is given below:
var stringname=“string value”;
Let’s see the simple example of creating string literal.








