String object: to declare a string object by using the constructor notation.

In JavaScript, strings are immutable; we can perform any changes and then convert it into new String objects

Syntax : var variable_name =new String(value);

Example : var name =new String("shivaji");

Methods :

ToUpperCase() : it is used to convert the lower case to upper case.

toLowerCase(): It is used to convert uppercase to lowercase.

CharAt(): This method takes an index value and returns the first occurrence character only.

IndexOf():

Example :

Var a="shivaji kondeti";

Console.log(a.indexOf("v"));

Output : 3