casspot.blogg.se

What is jquery
What is jquery







There were two main goals of the library the first goal of jQuery was to provide an ergonomic API that can be used to manipulate a webpage. And to keep it short and crisp, you should know that jQuery was developed by John Resig in 2005 and was released to the public a year later at BarCampNYC. No one enjoys a history lesson more than the history teacher himself. So let’s get on with it! History Of jQuery So why did it decline? We will uncover everything you need to know about jQuery, from its history and features to why it isn’t relevant in today’s programming world. JQuery offers numerous benefits, and just like vanilla JavaScript, it is easy to learn.

what is jquery

Undoubtedly, the JavaScript library did terrific in the initial years of release and many years following that, but it isn’t relevant much anymore. The original concept of this library was to simplify event handling, Ajax, and CSS animation. The feature-rich JavaScript library was way too popular back then and was used to simplify HTML DOM manipulation and tree traversal. If you are a vintage programmer, you might have heard of jQuery. Only later did I learn of the disadvantages and drawbacks of relying too much on jQuery. I felt like I was cheating with how easy it was. It made creating powerful functions simple and easy. And even though the anonymous function is defined in function scope, it is actually scoped to the Window because that is where the variable is first declared.Ever since I made the leap to learn web development so I could offer web development services at my computer repair store, I fell in love with jQuery. Notice that even inside the function, the local variable this is actually window, as the function is in the context of the Window object. Let’s try something to see what happens: var aGlobalVar Ĭonsole.log(typeof aGlobalVar) // output: function

what is jquery

It is scoped to the function, but in the context of the owner object, and if none is specified, that object is window. In a function, there is a local variable called this. In JavaScript, variables have scope, and objects have context.









What is jquery