Can someone explain me what are the difference between these 2 lines?
setInterval(() => $('#mainDiv').load(getData()), seconds * 1000);
setInterval("$('#mainDiv').load(getData())", seconds * 1000);
result is the same, but I'm wondering is there any difference