---
title: "Discussion on \"Pass by value and Pass by reference in JS\" | Hashnode"
description: "Discussion on \"Pass by value and Pass by reference in JS\". In this article, we'll look at what is pass by value and pass by reference in JS.\nBefore starting this,  In javascript has 5 types that are passed by value: boolean, null, undefined, String, and Number.\n// Primitives\nconst number= 10;\nconst bool = fa..."
url: "https://hashnode.com/posts/pass-by-value-and-pass-by-reference-in-js/61ddf53f44f1964f4fa7dc44"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Pass by value and Pass by reference in JS](https://codingpath.hashnode.dev/pass-by-value-and-pass-by-reference-in-js?utm_source=hashnode&utm_medium=feed)

In this article, we'll look at what is pass by value and pass by reference in JS. Before starting this, In javascript has 5 types that are passed by value: boolean, null, undefined, String, and Number. // Primitives const number= 10; const bool = fa...

Jan 11, 2022 · 3 min read · codingpath.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Rahul Bhoir](https://hashnode.com/@devRahul04)

@devRahul04

  
[View profile](https://hashnode.com/@devRahul04)

Software Developer

I am software developer who loves to write.

## Responses 1

Markdown supported · ⌘↵ to post

[Omkar Ghate](https://hashnode.com/@omkar01)

[Jan 12, 2022](https://hashnode.com/posts/pass-by-value-and-pass-by-reference-in-js/61ddf53f44f1964f4fa7dc44/comment/61de885244f1964f4fa7e840)

This is really helpful, thanks for the blog!
