Timeline for Are Javascript arrays primitives? Strings? Objects?
Current License: CC BY-SA 3.0
22 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 30, 2014 at 23:03 | history | edited | JJJ | CC BY-SA 3.0 |
removed noise
|
| Feb 19, 2011 at 17:21 | history | edited | Jared Farrish | CC BY-SA 2.5 |
added 413 characters in body
|
| Feb 19, 2011 at 17:16 | vote | accept | Jared Farrish | ||
| Feb 19, 2011 at 5:16 | history | edited | Jared Farrish | CC BY-SA 2.5 |
added 304 characters in body; added 1 characters in body
|
| Feb 19, 2011 at 2:55 | answer | added | James Sumners | timeline score: 1 | |
| Feb 19, 2011 at 2:40 | answer | added | Jeff Hubbard | timeline score: 0 | |
| Feb 19, 2011 at 2:38 | answer | added | Šime Vidas | timeline score: 52 | |
| Feb 19, 2011 at 2:34 | history | edited | Jared Farrish | CC BY-SA 2.5 |
added 152 characters in body
|
| Feb 19, 2011 at 2:31 | comment | added | leebriggs | The language also has the wonderful oddity that typeof [] == 'object'. A poor design decision that causes further confusion. | |
| Feb 19, 2011 at 2:27 | comment | added | Jared Farrish | @Robert - No, not really. This is very specific to Javascript. I'm looking for a canonical response that clarifies meaning here. "Fact" is the standard; help me understand truth. | |
| Feb 19, 2011 at 2:20 | comment | added | Robert Harvey | I think what you might be looking for is a better understanding of "object orientation" versus "primitives", not Javascript language features per se. | |
| Feb 19, 2011 at 2:20 | answer | added | aiham | timeline score: 7 | |
| Feb 19, 2011 at 2:19 | answer | added | connrs | timeline score: 1 | |
| Feb 19, 2011 at 2:19 | comment | added | Jared Farrish | @Robert Harvey - I appreciate it. I'm looking for guidance, an answer in the sense of "this is the best way to understand". I'm not sure I can find that answer in a standard, although it is useful for understanding. I would also note I don't think this has been answered sufficiently in SO. I'm hoping someone gets inspired and really goes for it in an answer. | |
| Feb 19, 2011 at 2:16 | comment | added | Robert Harvey | The Ecmascript Language Specification is here: ecma-international.org/publications/standards/Ecma-262.htm. Ecmascript and Javascript are essentially the same language. All of the EcmaScript and Javascript language specifications I have been able to find all say that Arrays are objects. | |
| Feb 19, 2011 at 2:14 | answer | added | Matti Virkkunen | timeline score: 13 | |
| Feb 19, 2011 at 2:12 | history | edited | Jared Farrish | CC BY-SA 2.5 |
added 124 characters in body; added 4 characters in body; added 65 characters in body; added 2 characters in body; deleted 1 characters in body
|
| Feb 19, 2011 at 2:11 | answer | added | slifty | timeline score: 7 | |
| Feb 19, 2011 at 2:11 | comment | added | Jared Farrish | @Martti - Very true. Is that the principle difference then, that Javascript arrays are always indexed arrays, versus associative arrays (or objects)? | |
| Feb 19, 2011 at 2:08 | comment | added | Jared Farrish | @Robert Harvey - I am trying to clarify my understanding. Does notation denote significance? Are "arrays" fundamentally different from objects, strings, etc... in Javascript? I think it's a fair inquiry. | |
| Feb 19, 2011 at 2:07 | comment | added | Matti Virkkunen |
var arr = ['you':'them']; this isn't valid syntax
|
|
| Feb 19, 2011 at 2:03 | history | asked | Jared Farrish | CC BY-SA 2.5 |