title: Use setInterval() 2 times with same functions, but different parameters
body: <p>Let's supose I have 2 labels in my frontend code which represents a timer each and they have to be updated every second. For that, I created one javascript function that does the job, which receives the actual DateTime and the label ID.</p>
  
  <p>Now, I want to register the function to setInterval method twice, each with its own parameters. Any idea of why the following code isn't working?</p>
  
  <pre><code>(function () {
      function updateTimerLabel(label, currentDateTime) {
          currentDateTime.setSeconds(currentDateTime.getSeconds() + 1);
          label.text(currentDateTime.getHours().toString() + ":" + currentDateTime.getMinutes().toString() + ":" + currentDateTime.getSeconds().toString());
      }
      ;
      setInterval(function () { updateTimerLabel(label1, dateTime1); }, 1000);
      setInterval(function () { updateTimerLabel(label2, dateTime2); }, 1000);
  }())
  </code></pre>