What is jquery?
jQuery is designed to change the way that you write JavaScript.. jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages.
What does minify mean?
Minify, in computer programming languages, is the process of removing all unnecessary characters from source code, without changing its functionality. Minified source code is especially useful for interpreted languages deployed and transmitted on the Internet (such as Javascript) because it reduces the amount of data that needs to be transferred.
Explain the following code and how it differs from using the onload event pattern? $(document).ready(function(){ // Your code here });
If you want an event to work on your page, you should call it inside the $(document).ready() function. Everything inside it will load as soon as the DOM is loaded and before the page contents are loaded. On some pages that use traditional JavaScript, you’ll see an “onload” attribute in the <body> tag. The problem with this is that it’s limited to only one function. With $(document).ready(), you can get your events to load or fire or whatever you want them to do before the window loads. Everything that you stick inside its brackets is ready to go at the earliest possible moment — as soon as the DOM is registered by the browser, which allows for some nice hiding and showing effects and other stuff immediately when the user first sees the page elements.
Chainability?
allows methods to be linked up together to form a specific action. This allows an element to be reused independently to other method declarations on the same line. To end an event on a line users can use the .end() method which allows the declaration of more script
Explain the following code and its connection with AJAX?
$(“a”).click(function(event){event.preventDefault();$(this).hide(“slow”);});
This code allows for special effects to make your website stand out.
The above code should, if you click any link in your website, it should make itself slowly disappear.