Question d’entretien chez Microsoft

How to write the debounce function in javascript