Editor
Download
Open
Auto Run
<!DOCTYPE html> <html lang="en"> <head> <title>JavaScript str length function</title> </head> <body> <script type="text/javascript"> var str = "Hello String!"; document.write('Length of the given String: ' + str.length); </script> </body> </html>
Preview