How to Sort an array in Javascript

September 13, 2020Javascript 1 Min Read

One of the Classic Tasks in a Life of a Developer is to sort something . Lets begin with the first Example , if you want to sort an array…

How to swap two elements in an array in Javascript

August 17, 2020Javascript 1 Min Read

How can we swap two elements in an array, in javascript ? Suppose that we have an array which contains 5 Numbers . For example we want to…