Custom Search

JavaScript Tutorial - Search inside Array without Looping

While doing programming we often want to search for specific content inside the array and in general programmers would perform a looping operation on the array to search for the specific content. But below is the small code snippet written in JavaScript that can search for content in array without using Loops.

Bookmark It

Hide Sites

JavaScript Tutorial - Sorting Numeric Array

In JavaScript whenever you want to sort an array it gets sorted alphabetically. This means that numbers are sorted on the basis of the first digit occurring in number system(1 - 9) and not by comparing the value. So if i want to sort an array having values 10,12,11,20,2,25,30 gets sorted to 10,12,11,20,2,25,30 using inbuilt […]