How to make a JQuery Plugin

Making a JQuery plugin is very simple just like in the previous lesson we learnt how the JQuery plugin can be used. In that lesson we observed that JQuery plugin had a Javascript file and a CSS file, similarly while developing a JQuery plugin all the code is written in the Javascript file which has extension '.js'. (CSS file is there for styling only).

For example we want to make a plugin which finds the largest number in an array passed as parameter. For this we need to follow the following steps  

Get hands-on with 1200+ tech skills courses.