---
title: "Rishi Srivastava (@sririshi) | Hashnode"
description: "Front end developer. Read the latest articles by Rishi Srivastava on Hashnode."
url: "https://hashnode.com/@sririshi"
---

@sririshi

# Rishi Srivastava

@sririshi · Joined September 2021

Front end developer

### [Shallow and Deep copy in JavaScript](https://sririshi.hashnode.dev/shallow-and-deep-copy-in-javascript?utm_source=hashnode&utm_medium=feed)

Shallow Copy Shallow copy creates copy of an object. New copy has exact copy of values in original object. New copy refers to same reference as original object refers. Example: let obj = { name: "John", age: "25" }; let newObj = obj; newObj.n...

2 min read · [sririshi.hashnode.dev](https://sririshi.hashnode.dev/shallow-and-deep-copy-in-javascript?utm_source=hashnode&utm_medium=feed)

[Jul 5, 2022](https://hashnode.com/posts/shallow-and-deep-copy-in-javascript/62c3c5bbccecfb25bbc7a63b)

### [Reference & Type & Syntax Error](https://sririshi.hashnode.dev/reference-and-type-and-syntax-error?utm_source=hashnode&utm_medium=feed)

If you have been writing code more than "Hello World", you might have encountered with errors. It's not a pretty sight when program shows error. As a good developer you must know about error types. In this blog we will cover three most occurred erro...

3 min read · [sririshi.hashnode.dev](https://sririshi.hashnode.dev/reference-and-type-and-syntax-error?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/reference-and-type-and-syntax-error/61df42d1fdb5256450d3315a) [Jan 12, 2022](https://hashnode.com/posts/reference-and-type-and-syntax-error/61df42d1fdb5256450d3315a)

### [Nullish Coalescing Operator (??)](https://sririshi.hashnode.dev/nullish-coalescing-operator?utm_source=hashnode&utm_medium=feed)

Nullish coalescing operator is a logical operator. It returns right hand operand only if left hand operand is null or undefined. Syntax leftOperand ?? rightOperand Examples: const user = null ?? "user"; console.log(user); /\* output: user \*/ const...

1 min read · [sririshi.hashnode.dev](https://sririshi.hashnode.dev/nullish-coalescing-operator?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/nullish-coalescing-operator/61dc8368b0c3ca3df9b4a19b) [Jan 10, 2022](https://hashnode.com/posts/nullish-coalescing-operator/61dc8368b0c3ca3df9b4a19b)

### [First-class Function in JavaScript](https://sririshi.hashnode.dev/first-class-function-in-javascript?utm_source=hashnode&utm_medium=feed)

In JavaScript functions are treated as First-class Function when a function can be assigned as a value to variable or it can be passed as arguments to other function or can be returned by another function. Example: Assign a function to variable const...

1 min read · [sririshi.hashnode.dev](https://sririshi.hashnode.dev/first-class-function-in-javascript?utm_source=hashnode&utm_medium=feed)

[Sep 26, 2021](https://hashnode.com/posts/first-class-function-in-javascript/61501c6a7ef2d57e218f05ea)
