Check out example codes for "how to download jquery". It will help you in understanding the concepts better.

Code Example 1

You have quite a few options

You can get the whole source
Uncompressed dev:
Compressed production:
You the simply save the code into a Javascript file and include it in the usual way
<script type="text/javascript" src="jquery.js"></script>

Or point to a CDN, such as Google's
<script src=""></script>

You can get it using NPM, Yarn or Bower
npm install jquery
yarn add jquery
bower install jquery

You can even get the latest builds from GitHub
git clone git://

Code Example 2



        <script src="js/jquery.js"></script>
        <script>$(function() { alert('hi') })</script>

Code Example 3

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

Learn ReactJs, React Native from