JavaScript Tutorial/String/length

Материал из Web эксперт
Перейти к: навигация, поиск

Get the lengh of a string

   <source lang="javascript">

<html> <head> <script type="text/javascript" language="javascript">

</script> </head> <body> </body> </html></source>


string.length

The length property of an instance of the String object returns the total length of the string.



   <source lang="javascript">

<html>

   <script language="JavaScript">
   
   </script>

</html></source>