---
title: "Mohit Sain (@mohit8302) | Hashnode"
description: "Mohit Sain (@mohit8302) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@mohit8302"
---

@mohit8302

# Mohit Sain

@mohit8302 · Joined February 2023

### [set Timeout() and clearTimeout() in JavaScript](https://mohitstag.hashnode.dev/set-timeout-and-cleartimeout-in-javascript?utm_source=hashnode&utm_medium=feed)

The setTimeout() method executes a block of code after the specified time. The method executes the code only once. syntax- setTimeout(function, milliseconds); The setTimeout()method returns an intervalID , which is a positive integer function greet()...

1 min read · [mohitstag.hashnode.dev](https://mohitstag.hashnode.dev/set-timeout-and-cleartimeout-in-javascript?utm_source=hashnode&utm_medium=feed)

[Jul 30, 2023](https://hashnode.com/posts/set-timeout-and-cleartimeout-in-javascript/64c5f8a08ec9f969146fa09a)
