VBScript Return a number of characters from the left or right side of a string

Return a number of characters from the left or right side of a string

<html>
<body>

<script type="text/vbscript">
text="Have a nice day!"
document.write(Left(text,5))
document.write("<br>")
document.write(Right(text,5))
</script>

</body>
</html>