ECMA-262 is the official name of the standard. ECMAScript is the official name of the language.
Second: Externally – we link the external javscript file which is named with extension “.js”.
Example for First way:
the script is included directly in the markup using the <script> element that encloses the script.
Example for the Second way:
var x, y, z; // How to declare variables
x = 5; y = 6; // How to assign values
z = x + y; // How to compute values
we will not use <script> element because it is not needed and when we link the file the HTML page then we will use <script> element see below line:
We can add this line inside head tag element and also in footer within body tag element.