What is Mean? Are you a web developer? Curious to know about Mean? Here you go! Well, MEAN stands for Mongo DB, Express, Anguar JS, Node.js. MEAN is an end-to-end JavaScript stack largely used for cloud-ready applications. The best thing about MEAN is that every part of MEAN uses the same language i.e. JavaScript so... Continue Reading →
jQuery CDN
CDN - abbreviation of Content Delivery Network is a system or network of computers that exist worldwide and cache files for users to access. Web developers all over the world can leverage the use of CDNs to host their jQuery Library for improved performance and faster access
jquery callback()
As we know that JavaScript statements are executed line by line. But, if the effects are applied, the next line of code can be run even before the finishing of the current effect which can create errors. For this reason, we use callback functions. A callback function is executed after finishing of the current effect... Continue Reading →
jquery animate()
Among several effects, there also exists animation in jquery. Yes, we can also animate a jquery element such as a div or button using the animate() method. Syntax $(selector).animate({params},speed,callback); Params is the required parameter and it defines the CSS properties to be animated. properties may include left,right, opacity and many others Speed and callback are... Continue Reading →
jquery .each()
.each() iterates for each matched element. Syntax $(selector).each(function(index,element)) For example, in the following piece of code, on the click of button, text of each list item will be displayed jquery Example $("button").click(function(){ $("li").each(function(){ alert($(this).text()) }); });
Reference vs Pointer
Differences POINTERREFERENCEIs a variable that holds memory address of another variable. // int *ptr = &i; Is an alias i.e. another name for an already existing variable. // int &ref = i; Can point nowhere e.g. NULLMust refer to an objectCan be re-assigned any number of times Cannot be re-assigned after binding Can take the... Continue Reading →
Chaining in jQuery
Using jQuery, We can chain together actions/methods as it allows us to run multiple jQuery methods/actions on the same element using just a single statement. We can chain the methods together using a period or dot(.) The advantage of chaining is that browsers don't have to find the same element more than once. Example $("#div5").css("color",... Continue Reading →
Difference between remove and empty methods in javascript
Most of the times, these methods are confused with each other or are thought of as performing the same functionality. But,remove() removes the selected element and all its child elements whereas empty() removes only the child elements from the selected element. Moreover, we can also filter the element to be removed in a specific class by... Continue Reading →
jQuery slideToggle() Method
The slideToggle() method toggles between the slideUp() and slideDown() methods. If an element is slid up, slideToggle() will slide it down and vice versa. Syntax $(selector).slideToggle(speed,callback); Example $("div").slideToggle();
Hashing
A hashing algorithm is a mathematical function that shortens the data to a fixed size. example Input “The Quick Brown Fox Jumps Over The White Lazy Dog” MD5 Hashing algoritm output 54a4cbe2eadcdb37493b4e66b47fe965 This resultant value is known as hash value. Uses of Hashing algorithms Speed: due to shortened data, Run calculations on data: Easy to... Continue Reading →