Simple String of javascript

A string object is used to represent The sequence of characters. JavaScript strings are used for storing and manipulating text.

A JavaScript string stores a series of characters like “John Doe”. A string can be any text or empty text inside double or single quotes.

var playerName = “Messi”;

Some Property of string has come:-

String length:

var Name = “Anisul islam”;
var sln = txt.length;
document.getElementById(“demo”).innerHTML = sln;

coming more later…..

--

--