<html> <head> <title>Splitting a string into substrings</title> <script type="text/javascript" > var a = "Bytes and bits"; var b = a.substring(10, 13); document.write(b); </script> </head> <body> </body> </html>