Random Number of N digit Javascript / N digit Random Number Javascript. Generate N digit random number : At times you might have a requirement to generate a random number of N digit. Requirement could be to generate a random employee ID of 10 digit, a random product id of 5 digit or a category […]
Convert milliseconds to hours, min, sec format in JavaScript
Lets say we have time in milliseconds and want to generate a string in the format hours:minutes:seconds . We can use below mentioned function to achieve desired result. If we pass 3345345 to test this function it returns string in format hours : minutes and seconds format : 00:55:45 If we pass 4563355 to test […]