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

Code Example 1

<script src="javascript.js"></script>

Learn ReactJs, React Native from akashmittal.com