The purpose of the new operator in Unslider.js
Hey guys , I had a question about the code in this plugin i was looking at . basically the line i am haing a problem with is this one .
the line is :
- instance = (new Unslider).init(me, o);
now i understand that a new instance of Unslider is being created , and then the init function is being run .
but why is the new instance being created , can this be done without the new operator ?
what is the purpose of creating a new instance of Unslider in this plugin ? .
Thanks .
Gautam .