Add Time Delay Between Saved Data

Question:
How do I add a 5 second time delay between saved data?

Product:
Wix Editor

What are you trying to achieve:
Each entered data ends with:

$w(‘#dynamicDataset’).save()

What for do you need the delay of time?

There are options like…

onBeforeSave()
onAfterSave()

when using a DATASET.

But if you really want to delay → setTimeOut(()=>{ }delayTime);

setTimeOut(()=>{ .........what shall happen here after 5sec.?......... }5000);