C#(cSharp) Javascript jQuery PHP 

Shuffle Array and array of object values in javascript, PHP

#1 Javascript: in javascript, there is no array shuffle inbuilt function, so we need to find some custom solution solution1: Solution 2: #2 PHP: In php array shuffle is very easy to implement because, there is a inbuilt function provided “shuffle()“ #3 C# : In c# there is no direct shuffle function, so we need to use random and orderby to get the output #4 Java : Implemented via custom function Arjun JSArjun is a Full-stack developer, who is fond of the web. Lives in Chikmagalur, Karnataka, India arjunckm.in

Read More
Javascript jQuery 

Javascript errors you should be aware of

Javascript is one of the most popular programming languages in recent days, so we tried to find some most common errors in javascript. After working on many projects, we found some common javascript error based on errors that occurred in different browsers. There are many Javascript errors that occur when you run your code, Below are some error which is browser-centric and some are common in all browsers.  Google Chrome:  Uncaught TypeError: Cannot read property.  It occurs when you read a property or call a method on an undefined object.…

Read More
HTML logo CSS Frontend Programming HTML Javascript jQuery 

How to stick header to top using HTML/CSS/Javascript

To stick header / Fix the Header to top Follow these Steps 1.Create a Div in Html as shown in the below code 2. then add CSS, to it Position:fixed is very important to fix the header. 3. Then add JS you can also use this too. If the trigger point is unknown but should be whenever the sticky element reaches the top of the screen, offset().top can be used. then you can use the JS. .DEMO :http://jsfiddle.net/gxRC9/502/ Arjun JSArjun is a Full-stack developer, who is fond of the web.…

Read More