Java Script is a scripting language so it can be embedded in HTML page with the help of <script> tag.
Java Script used for client side validation in web technology like PHP , Java , Python .net applications .
External Java script files may be created with extension (.js ) . External JS file may contain only JS code while HTML page may contain both HTML and Java Script in <script> tag.