---
title: "vishal singh (@vishal21121) | Hashnode"
description: "My name is Vishal Singh, and I am currently pursuing my B.Tech degree from Future Institute of Engineering and Management. I am also a web developer with exp..."
url: "https://hashnode.com/@vishal21121"
---

@vishal21121

# vishal singh

@vishal21121 · India · Joined October 2022

### [Shallow copy vs Deep copy](https://vishal21121.hashnode.dev/shallow-copy-vs-deep-copy?utm_source=hashnode&utm_medium=feed)

When dealing with arrays and objects in JavaScript, it is often necessary to create copies of these structures. Since both arrays and objects are mutable, understanding the implications of modifying a copied array or object on the original is crucial...

4 min read · [vishal21121.hashnode.dev](https://vishal21121.hashnode.dev/shallow-copy-vs-deep-copy?utm_source=hashnode&utm_medium=feed)

[Dec 19, 2023](https://hashnode.com/posts/shallow-copy-vs-deep-copy/658187c59e2fc879617fb50f)

### [Introduction to Hoisting in JavaScript](https://vishal21121.hashnode.dev/introduction-to-hoisting-in-javascript?utm_source=hashnode&utm_medium=feed)

The JavaScript engine or interpreter when reading the script takes the variable declaration and function declaration to the top in memory, Initialisations are not hoisted. 👩‍💻 Coding Time Example - 1 console.log(a) // var is hoisted means we can a...

2 min read · [vishal21121.hashnode.dev](https://vishal21121.hashnode.dev/introduction-to-hoisting-in-javascript?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/introduction-to-hoisting-in-javascript/65490f76c822876f3a274762) [Nov 6, 2023](https://hashnode.com/posts/introduction-to-hoisting-in-javascript/65490f76c822876f3a274762)

### [Deep Dive into npm: Node Package Manager](https://vishal21121.hashnode.dev/deep-dive-into-npm-node-package-manager?utm_source=hashnode&utm_medium=feed)

Unleash npm's Power: Master Node Package Manager for efficient Node.js development.

6 min read · [vishal21121.hashnode.dev](https://vishal21121.hashnode.dev/deep-dive-into-npm-node-package-manager?utm_source=hashnode&utm_medium=feed)

[Oct 31, 2023](https://hashnode.com/posts/deep-dive-into-npm-node-package-manager/6540f9cdc1f0940ffca04868)

### [Closures in JavaScript](https://vishal21121.hashnode.dev/closures-in-javascript?utm_source=hashnode&utm_medium=feed)

Introduction Closures are created when the function is defined, allowing the nested child function to access the parent's variables even when the parent function has finished its execution. Now let's learn Closures with examples. Examples From the b...

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

[Oct 26, 2023](https://hashnode.com/posts/closures-in-javascript/653a9d97e3e8550d3ed9d99c)

### [Array.slice vs Array.splice](https://vishal21121.hashnode.dev/slice-vs-splice?utm_source=hashnode&utm_medium=feed)

Introduction In the world of JavaScript and array manipulation, two methods stand out: slice and splice. These methods allow us to extract and modify elements within arrays, but they come with distinct behaviours and use cases. In this discussion, we...

4 min read · [vishal21121.hashnode.dev](https://vishal21121.hashnode.dev/slice-vs-splice?utm_source=hashnode&utm_medium=feed)

[Oct 25, 2023](https://hashnode.com/posts/slice-vs-splice/65395e25ca81c00f07b17c46)
