I am beginning from zero with JavaScript. I have a couple of books on it, to help me decide if it is the right vehicle for my project. The books offer sample scripts, such as the one below. They don't say whether to insert the script in the <head> or <body> of an HTML document, so I've tried both. I have uploaded them to two different servers. But each time, nothing appears in the place where supposedly the date is expected. What part of "embedded in HTML" haven't I understood?
Here is the entire snippet:
<script type="text/javascript">
document.write("Hello World. Today is " + Date() );
</script>