Method for length of string in JS

String method for length 

<!DOCTYPE html>
<html>
<head>
<title>Test page for positions</title>
<script type="text/javascript">

var str= "HELLO WORLD!!";

var b= str.length; //string method used here 

console.log(b);

</script>

</head>
<body>

</body>
</html>




Comments

Popular posts from this blog