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()) }); });

Function to reverse a Number in C#

C# Code using System; namespace ReverseNumber { class Program { static void Main(string[] args) { Console.WriteLine("Enter a Number to reverse"); int Number = int.Parse(Console.ReadLine()); int Reverse = 0; while(Number>0) { int remainder = Number % 10; Reverse = (Reverse * 10) + remainder; Number = Number / 10; } Console.WriteLine("Reverse No. is {0}",Reverse); Console.ReadLine(); }... Continue Reading →

Function to reverse a string in C#

C# Code using System; namespace reverseString { class Program { static void Main(string[] args) { string strng = "", reverse = ""; int Length = 0; Console.WriteLine("Please Enter a Word"); strng = Console.ReadLine(); Length = strng.Length - 1; while(Length>=0) { reverse = reverse + strng[Length]; Length--; } Console.WriteLine("Reversed word is {0}",reverse); Console.ReadLine(); } } }

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 →

Blog at WordPress.com.

Up ↑

Create your website at WordPress.com
Get started