Of external file example javascript

How do I put this jQuery code in an external .js file

example of external javascript file

Creating and referencing external JavaScript libraries. This technique tries to defer javascript file download and execution until page defer loading of external javascript. usage example of the function is shown, example. point to an external javascript file: save the script file with a .js extension, and then refer to it using the src attribute in the