Recently when I was working with JavaScript \"sort()\" function, I found in one of the tutorials that this function does not sort the numbers properly. Instead to sort numbe
And what if your n is defined as:
var n = [10, 5, 40, 25, 100, 1];