I'm using the setInterval function in JavaScript but I get like one hundred reps per second from the console.log('NOW'). setTimeout also has the same effect.
Where is my mistake? I want to call the function "function1" every 15 minutes.
JavaScript Code:
function1() {
console.log('NOW');
.
.
.
});
},
refreshData() {
this.function1();
setInterval(this.refreshData(), 900000);
},
Thanks in adavance!