JS is Case Sensitive
var chimmy = chonga;
The space between var and chimmy is actually needed here for the script to work properly. Or consider:
document.writeln('This is a line');
Whitespace contained within a string also cannot be removed.
/* */ handles the multi-line commenting while
// can be used line by line, or at the end of a line to add a comment.
The Order of Code Execution Matters
Use of the Script Tag
In the past, we had to worry about specifying many attributes for the script tag. With the onset of HTML5 and modern browsers, simply including the src attribute is enough.
Where should I place the Script Tags?
The script tags can go anywhere on the page, but as a best practice, many developers will place it just before the closing body tag on the HTML page. This provides faster speed load times for your web page.
This was a very gentle primer of what’s to come. It has been helpful to review some of the key points and overview of the language.