Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Internal JavaScript

A second way is to include a <script> tag inside your html document. This provides a JavaScript execution context. Inside the opening and closing <script> tags, we can embed our JS code.

Note: If you want to apply some JS code that interacts and alters HTML elements on the page, you need to include the <script> tag AFTER  the elements have been loaded!