Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
Essentially the same code snippet with just a little bit cleaner and more efficient code1. setTimeout() is replaced with setInterval() function2. The interval is correctly set to 333 msec to produce 3 updates per second as specifiedRelated application (as FYI): Inflation...
For almost 30 years I have been working with computers, learning a myriad of languages and participating in various computing environments.
Though I have been mentoring other developers for the last decade, I have recently found a strong interest in writing and am learning to translate the fun of in-person teaching to something I can get into article form.
I enjoy following technology trends, new gadgets and trying to guess where innovation will lead us next (I'm kinda holding out for a robot-served utopia, but willing to submit to our future robot leaders).
I am a guy who is passionate about my faith, my family and a cure for Juvenile Diabetes (my son lives with this disease).