Saved X
Google login
SignUp with Email
X

String length javascript

theindreshverma ( Edited  Sep 30, 11:20 am )
Login

Javascript str.length calculates the string length.

<script>
var x = 'This is javascript.';

document.write('String length - '+x.length);
</script>

Sourcecode Tags

More Sourcecodes

More Sourcecodes