Strings are sequence of characters. In javascript a string can be placed inside double quotes and in single quotes as well.

Example

<script>
var msz = "Hello World";   // A javascript string with double quotes
var msz = 'Hello World';   // A javascript string with single quotes
</script>

Single quote string

<script>
 let greetings = 'Hello world'; // single quote
</script>

Double quote string

<script>
 let greetings = "Hello world"; // double quote
</script>

Both strings inside double quote and in single quote are same.

Template string literals

String inside back ticks is template string introduced in ES6 (JavaScript 2016), Single quotes and double quotes can be used inside template string. Multiline string can be created with Template string.

Template string with double and single quote string.

<script>
 let greetings = `Hello world "Good" 'Morning' `; 
</script>

Multiline string with Template string

<script>
 let greetings = `Hello world 
		  "Good" 'Morning' 
                  How are you? `; 
</script>

Concatenate two or more strings

<script>
 let a = 'Hello '; 
 let b = 'world'; 
 let c;

 c= a + b + ' Good Morning';
 document.write(c);

</script>

Adding two or more strings with + operator called concatenation and + operator is called concatenation operator.

String objects

Javascript also provides String() constructor. it creates a new string object.

<script>
 let name =  new String("yourshala");
</script>