Javascript: Quick Sort Implementation

Quick sort is a divide and conquer sorting algorithm. It creates two empty arrays to hold elements less than the pivot value and elements greater than the pivot value, and then recurively sort the sub arrays.
Here is an example of quick sort in Javascript