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

@Vishal070

# Vishal Pandey

@Vishal070 · Joined April 2025

### [Async/await:](https://cleanasyncjs.hashnode.dev/asyncawait?utm_source=hashnode&utm_medium=feed)

Absolutely! Let's walk through your code line by line with precise explanations, focusing especially on what happens after each awaitand how microtasks are scheduled and executed. ✅ Code Recap: jsCopyEditconsole.log("script start"); async function ...

3 min read · [cleanasyncjs.hashnode.dev](https://cleanasyncjs.hashnode.dev/asyncawait?utm_source=hashnode&utm_medium=feed)

[May 23, 2025](https://hashnode.com/posts/asyncawait/68302230f3eb8a11582ee71a)

### [closures pracitse:](https://cleanclosure.hashnode.dev/closures-pracitse?utm_source=hashnode&utm_medium=feed)

Here’s a curated list of 20 closure-related JavaScript questions, progressing from easy to hard, covering fundamental to advanced concepts: Easy (1-7) - Basic Understanding What is a closure? (Definition) Write a function counter() that returns a ...

3 min read · [cleanclosure.hashnode.dev](https://cleanclosure.hashnode.dev/closures-pracitse?utm_source=hashnode&utm_medium=feed)

[May 23, 2025](https://hashnode.com/posts/closures-pracitse/683021ac925a843478e26896)

### [Closures:](https://cleanclosure.hashnode.dev/closures?utm_source=hashnode&utm_medium=feed)

1\. First Loop (with differentScope function): for(var i=1;i<=5;i++){ const differentScope = (i)=>{ setTimeout(()=>{ console.log(i) },i\*1000); } differentScope(i); } Output: 1 2 3 4 5 (each number printed at 1-...

2 min read · [cleanclosure.hashnode.dev](https://cleanclosure.hashnode.dev/closures?utm_source=hashnode&utm_medium=feed)

[May 23, 2025](https://hashnode.com/posts/closures/682fe1ae7e4e058c3de0cfff)

### [practise2:](https://cleanasyncjs.hashnode.dev/practise2?utm_source=hashnode&utm_medium=feed)

console.log("1"); const promise = new Promise((resolve,reject)=>{ console.log("2"); resolve("3") console.log("4") }) promise.then((res)=>{ console.log("5") console.log(res); console.log("6") }) console.log("7") 🔄 Step-by-...

3 min read · [cleanasyncjs.hashnode.dev](https://cleanasyncjs.hashnode.dev/practise2?utm_source=hashnode&utm_medium=feed)

[May 22, 2025](https://hashnode.com/posts/practise2/682ec31c22595e1148de272c)

### [practise1:](https://cleanasyncjs.hashnode.dev/practise1?utm_source=hashnode&utm_medium=feed)

const promise1 = new Promise((resolve, reject) => { setTimeout(() => { resolve("promise1 called"); }, 5000); }); const promise2 = new Promise((resolve, reject) => { setTimeout(() => { resolve("promise2 called"); }, 2000); }); async ...

5 min read · [cleanasyncjs.hashnode.dev](https://cleanasyncjs.hashnode.dev/practise1?utm_source=hashnode&utm_medium=feed)

[May 22, 2025](https://hashnode.com/posts/practise1/682eb95c9f1ea74ed774572c)
