I have this code:
let ad1 = setTimeout(() => {
console.log("Delayed for 1 second.");
}, "1000")
console.log(ad1, 'start')
clearTimeout(ad1)
console.log(ad1, 'end')
Here console.log(ad1, 'end') i expect that my ad1 should be cleared but the id still there.
Why the id is not cleared and how to see if the timeout id is clearead in my situation?