Prev Demo
JavaScript
>
String Length
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>String Length</h1> <div id="myId"></div> <script> var txt = "Mr. Sheo Narayan is a software professional since 2000 (15+ years) and working in .NET Technologies since its first release. "; document.getElementById("myId").innerHTML = txt.length; </script> <p><strong>Note:</strong> The above number describes the length of the entered string in the script code.</p> </body> </html>
Note: We DO NOT save your trial code in our database.
Output