I need to generate unique id numbers on the fly using javascript. In the past, I\'ve done this by creating a number using time. The number would be made up of the four digi
This also should do:
(function() { var uniquePrevious = 0; uniqueId = function() { return uniquePrevious++; }; }());