JavaScript has a built-in sort prototype method. Which can be used to sort elements of an array. When we call .sort() method of an array of numbers or strings JavaScript automatically sort the array.
In Computer Science, a Hash Table is a Data Structure. There are many data structure available such as Stack, Queue, Linked List, Set. Hash Table is another one which stores data in an associative manner.
In this post we are going to make a small compiler with JavaScript. We will start by understanding what compiler is, phases of compilation then we will make a simple compiler.