Merge Sort in JavaScript

Introduction Sorting refers to arranging items of a list in a specific order (numerical or alphabetic). Sorting is generally used in tandem with searching. It is generally easier to search for an element (called the key) in a given list if the list is sorted, both visually and algorithmically. There...
Continue Reading

Quicksort in JavaScript

Introduction

Sorting refers to arranging items of a list in a specific order (numerical or alphabetic). Sorting is generally used in tandem with searching.

Over the years, many sorting algorithms have been developed, and one of the fastest ones to date is Quicksort.

Quicksort uses the divide-and-conquer strategy to sort

Continue Reading

Hoisting in JavaScript

Introduction

Hoisting is a JavaScript behavior commonly known for making variables and functions available for use before the variable is assigned a value or the function is defined. In effect, it puts variable, function and class declarations to the top of their scope (the global scope or a function) before

Continue Reading