A global window object's setTimeout() method adds delay to JavaScript functions. With the help of this function, we may specify a specified delay before a function is executed.