Link to home
Start Free TrialLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

asked on

JS Plugin

Hi Experts,

I am taking a JS course, and I cannot really understand what is a plugin and how different is it from a class?

We also did $.fn.plugin=function(), so that we can extend jQuery, but why do you need to do it because you still need to include the jQuery library?

Thank you
Avatar of leakim971
leakim971
Flag of Guadeloupe image

A plugin is a set of objects and functions to do something. For example provide a simple function to create a slideshow or launch a video or again detect if the device opening the page is a mobile phone using the browser signature.
It's not different from a class in other language, yes

I think you agree than you still need the JVM to run a class or when you just implement an interface.
Avatar of APD Toronto

ASKER

What is JVM and why do we need $.fn?
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial