---
title: "Discussion on \"Coercion in Javascript\" | Hashnode"
description: "Discussion on \"Coercion in Javascript\". Have you ever been intrigued by the result of these javascript questions? that \n[] + [] = \"\"\n[] + {} = \"[object Object]\"\n{} + {} = NaN\n{} + [] = 0\n[] + 5  = \"5\"\n\nWell, I was both intrigued and shocked. That is why I delved in to find out what's happe..."
url: "https://hashnode.com/posts/coercion-in-javascript/5fa1ceedcad5a1068b51aac5"
---

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

Discussion

# [Coercion in Javascript](https://dera.hashnode.dev/coercion-in-javascript?utm_source=hashnode&utm_medium=feed)

Have you ever been intrigued by the result of these javascript questions? that \[\] + \[\] = "" \[\] + {} = "\[object Object\]" {} + {} = NaN {} + \[\] = 0 \[\] + 5 = "5" Well, I was both intrigued and shocked. That is why I delved in to find out what's happe...

Nov 3, 2020 · 8 min read · dera.hashnode.dev  
Updated Jul 15, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#coercion](https://hashnode.com/tag/coercion)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#js](https://hashnode.com/tag/js)
-   [#return](https://hashnode.com/tag/return)

## Written by

[Chidera Paul Ugwuanyi](https://hashnode.com/@chidera)

@chidera · Aba, Abia State, Nigeria

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

React Native Developer

React native Developer, Life long learner, Jesus Christ lover.

## Responses 1

Markdown supported · ⌘↵ to post

[Dennis Ukonu](https://hashnode.com/@devcraft1)

[Nov 16, 2020](https://hashnode.com/posts/coercion-in-javascript/5fa1ceedcad5a1068b51aac5/comment/5fb225ec0f6d4f4d2f66adc6)

Thumbs up boss. This piece is cool

[Chidera Paul Ugwuanyi](https://hashnode.com/@chidera)

[May 9, 2021](https://hashnode.com/posts/coercion-in-javascript/5fa1ceedcad5a1068b51aac5/comment/5fb225ec0f6d4f4d2f66adc6#reply-609772791ea29f2c341e0c94)

Thanks man. I appreciate.
