Here are notes on setTimeout, setInterval, and related methods in JavaScript:
1. setTimeout()
Definition:
setTimeout() is a function that executes a piece of code after a specified delay.
Syntax:
let timeoutID = setTimeout(callback, delay, param1, p...