Question:
The ‘greater-than’ vs. ‘comment’ dilemna
Answer:
There is a trick in writing JavaScripts which all developers should learn as soon as possible. When putting a script in your HTML, you should comment out the code (using ‘‘
). The comments will keep the code from actually being written on the web page, yet won’t stop the parser from loading the script. Here’s a peek at what this looks like: