Just another WordPress site

## Sorting Algorithms

Sorting an array with an higher order function now a days is very easy. Now doing same thing with vanilla JavaScript algorithms. Bubble sort Algorithm

## Reverse an Array using JavaScript

This article I am going to show you the different way you can reverse an Array. Array is a group of similar item, number etc that is store in single variable. For eg: let arr1…Continue Reading

## Create Pyramid structure from javascript

Create Pyramid structure from JavaScript simple nested loop

## Nested Loop javascript

Simple nested loop javascript code var person = [{ name : [ {firstName: “Ravi”, lastName: “Kumar”} ], id : 5566 },{ name: [ {firstName: “John”, lastName: “Braman”} ], id : 96 }]; var item, text;…Continue Reading

## Basic simple calculator

In this tutorial I am going to show you how to design a basic simple calculator with few HTML codes. Generally building of calculator seems to be very hard work and lots of code. But…Continue Reading

## javascript function keyboard key

With javascript we can control the function of keyboard key. Its necessary sometimes when we have to create an event on clicking some specific key. In this post we are going to learn how to…Continue Reading

## javascript redirect code

With below javascript redirect code, you can easily redirect your current page to any pages you desire. Simple Javascript redirect code copy and paste it into your page where you want to redirect on load.…Continue Reading

## How to disable right click and text selection

Disable right click and text selection It is possible with javascript to disable right click and text selection to avoid the text from being copied. Sometimes due to some rules you may need to disable…Continue Reading

## HTML5 default validation for confirm password

Hello guys, In this section, I am going to show you how you can easily validating HTML5 default validation for confirm the password. Generally in HTML5 when you create a form you simply write “required”…Continue Reading

## Compare identical array

How to compare identical array var userOrder = [“sort_one”,”sort_two”,”sort_three”,”sort_four”,”sort_five”]; var correctOrder = [“sort_one”,”sort_two”,”sort_three”,”sort_four”,”sort_five”]; function arraysEqual(arr1, arr2) { if(arr1.length !== arr2.length) return false; for(var i = arr1.length; i–;) { if(arr1[i] !== arr2[i]) return false; } return…Continue Reading