There are three different ways how to add java script on the page.
We can add java script inside the head section, inside the body or we can create external java script file.
Script tag takes two important attributes Language and Type.
Language - this attribute specifies what scripting language we are using.
Type - this attribute specifies what is recommended to indicate the scripting language in use, and value for this attribute is text/javascript.