I was studying min and max methods in JavaScript and I couldnt find any post that explain these methods algorithms. My guess is that in numerical variable like 1234 you can get min and max by splitting the number in 4 values and compare them. Or add these values in array, sort that array and get min as array[0]. Is there any post related to these methods explained?I was studying min and max methods in JavaScrip