Is it possible to make a counter in JavaScript for such a task?

Hi all, the task set to make the counter. Counter what I wrote, but the number in the counter after a page refresh gather and report happening again. Now, I need that on a certain date, for example, from 15.07.2018, 30 days counter every 40 minutes, was added to this id="noter" is a random number in the range from 4-30. The main thing that the numbers are not lost after refreshing the page, and the rest of the month was typed and typed. Thanks in advance)
var updateTimer = function() {
 var cell = document.getElementById('noter');
 var count = Number(cell.innerHTML);

 cell.innerHTML = count+= (Math.floor((Math.random() * 3) + 1));
};

setInterval(updateTimer, 30000);


<div id="noter">0</div>
June 3rd 19 at 18:55
2 answers
June 3rd 19 at 18:57
Solution
If you need that each client had its own meter, the values can be saved in LocalStorage.
But all users will be different, as it added a random number.

If you want that used they all had one counter, only through the server, there to pick a random number and save in the database
It is necessary that everyone had different numbers. Can you please help with the code. Just know JS very badly and how to do it through the Locale Storage, I don't know - nikita.Stracke commented on June 3rd 19 at 19:00
we can't, but you can freelancers on special platforms. - aniya commented on June 3rd 19 at 19:03
look , if the user closes the page the counter does not go astray, but to continue to work. Conditionally stop 78, and when the user opens the page there's the 78 will remain.

https://jsfiddle.net/Svupol/fc843v56/13/ - Myrtis commented on June 3rd 19 at 19:06
, https://tproger.ru/articles/localstorage/ - Myrtis commented on June 3rd 19 at 19:09
June 3rd 19 at 18:59

Find more questions by tags JavaScript