Check out example codes for "html script mime type". It will help you in understanding the concepts better.

Code Example 1

<script type="text/javascript"></script>

Learn ReactJs, React Native from akashmittal.com