Tips and Tricks for WRITING JAVASCRIPT code
Tips and Tricks for WRITING JAVASCRIPT code : JavaScript always has to be written inside of the < script > tag, so that your browser knows you are switching from HTML to a new programming language. You can put < script > tags in the < head > or < body > of your page.