---
title: "Discussion on \"Simple But Most People Miss Out On This 😊 Small Tips And Tricks For Javascript :\" | Hashnode"
description: "Discussion on \"Simple But Most People Miss Out On This 😊 Small Tips And Tricks For Javascript :\". REFERENCE AILISING :\nvar a = [1,2,3,4,5]\nvar b = a \nb.pop()\nconsole.log(b)\nconsole.log(a)\n\nOutput Expected : b = [1,2,3,4] and a=[1,2,3,4,5]\nActual output : b = [1,2,3,4] and a = [1,2,3,4]\nThe question arises why this happens.\nIt is very simple, in j..."
url: "https://hashnode.com/posts/simple-but-most-people-miss-out-on-this-small-tips-and-tricks-for-javascript/64c400401e7cb2eadf0c5d39"
---

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

Discussion

# [Simple But Most People Miss Out On This 😊 Small Tips And Tricks For Javascript :](https://supratick.hashnode.dev/simple-but-most-people-miss-out-on-this-small-tips-and-tricks-for-javascript?utm_source=hashnode&utm_medium=feed)

REFERENCE AILISING : var a = \[1,2,3,4,5\] var b = a b.pop() console.log(b) console.log(a) Output Expected : b = \[1,2,3,4\] and a=\[1,2,3,4,5\] Actual output : b = \[1,2,3,4\] and a = \[1,2,3,4\] The question arises why this happens. It is very simple, in j...

Jul 28, 2023 · 1 min read · supratick.hashnode.dev  
Read the article

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

## Written by

[Supratick Mondal](https://hashnode.com/@sonustar444)

@sonustar444

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

## Responses 1

Markdown supported · ⌘↵ to post

[Baidurya Debnath](https://hashnode.com/@Baidurya)

[Jul 29, 2023](https://hashnode.com/posts/simple-but-most-people-miss-out-on-this-small-tips-and-tricks-for-javascript/64c400401e7cb2eadf0c5d39/comment/64c547435a0f2b614f3158a5)

Kisob baniyechish
