> ## Content Index
> Fetch the complete content index at: https://www.binarysludge.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Javascript Object/Array Addition
- URL: https://www.binarysludge.com/2012/12/01/javascript-objectarray-addition/
- Published: 2012-12-01T12:00:16.000Z
- Updated: 2012-10-11T16:43:30.000Z
- Author: Andrew Martin
- Tags: Chrome, Debugging, Javascript, Programming, Ruby, wat, #Import 2026-10-22 12:56

I discovered this maniacal behaviour in Chrome's console and was directed to a lightning talk by Gary Bernhardt from CodeMash 2012, descriptively entitled [WAT ](https://www.destroyallsoftware.com/talks/wat?ref=binarysludge.com)\- oddities in Ruby and Javascript.

> [] + []
""
> [] + {}
"[object Object]"
> {} + {}
NaN
> {} + []
0