JavaScript not running correctly working in HTML5

I have a project that uses JavaScript to create a clock that adds a value of 1 to a variable. When I run the clock by itself in a mobile device it runs okay with out any issues. But when I run it in a project that with a lot more objects it does not run properly, instead of changing from 0:00 to 0:01 to 0:02 to 0:03 and so on, it ads a 1 so it goes from 0:00 to 0:01 to 0:011 to 0:0111 to 0:01111 and so on.

I know that there are no JavaScript support in the discussion, and the problem is not with my JavaScript code, it clearly runs fine, but I wanted to check and see if anyone has seen this issue or if anyone.

Thank you guys!

2 Replies
Ashley Terwilliger-Pollard

Hi Gustavo,

You may want to look at posting the code here so that folks in the community could take a look at what you've set up and offer some additional ideas/help around the specifics of that, as I haven't heard of the Javascript behaving differently just based on viewing it in HTML5. But as you noted, it's not something I'm equipped to offer support for - so the more you can share with the community, the better!