function startTimer(word, delay, callback) {
startTimer.prototype.previousTimer = null;
const timer = setInterval(
(word, callback) => {
console.log(word, timer);
if (startTimer.prototype.previousTimer !== timer) {
clearInterval(startTimer.prototype.previousTimer);
startTimer.prototype.previousTimer = timer;
}
callback();
},
delay,
word,
callback
);
}
console.log(this.middleName);
console.log(formData);
await axios.post('/api/upload', formData).then(console.log).catch(console.error);