c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
JavaScript

How to find the length of the string variable in JavaScript?

| | JavaScript

In this article we will discuss how to length of the string variable in JavaScript using length property.

<script type="text/javascript">

    alert("iam a alert".length);

</script>

Output:

 <script type="text/javascript">

    var myString = ".net tutorial site";

    alert(myString.length);

  </script>

Output: