Timeline for Array within array
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 15, 2015 at 12:47 | review | Close votes | |||
| Sep 19, 2015 at 0:05 | |||||
| Sep 15, 2015 at 12:27 | comment | added | Ulad Kasach | possible duplicate of Javascript Array inside Array - how can i call child array name | |
| Sep 15, 2015 at 12:26 | comment | added | display name | possible duplicate of Access / process (nested) objects, arrays or JSON | |
| Sep 15, 2015 at 12:25 | comment | added | Yoshi |
@Xufox It's not invalid, he's just creating a global (position).
|
|
| Sep 15, 2015 at 12:25 | comment | added | Teemu | @Xufox How is that? Though it's not very common or recommended, it's valid syntax. | |
| Sep 15, 2015 at 12:25 | answer | added | a-d | timeline score: 1 | |
| Sep 15, 2015 at 12:25 | comment | added | Abhitalks |
var enemies = [{x:0, y:0}, {x:5, y:5}, {x:10, y:10}]; then just refer to enemies[index].x
|
|
| Sep 15, 2015 at 12:25 | answer | added | Andy | timeline score: 2 | |
| Sep 15, 2015 at 12:24 | comment | added | Sebastian Simon | Your "array" is invalid syntax. | |
| Sep 15, 2015 at 12:24 | comment | added | Olivier De Meulder | Your first element would be enemies[0] | |
| Sep 15, 2015 at 12:23 | history | edited | Sebastian Simon | CC BY-SA 3.0 |
Removed tag from title, minor improvements.
|
| Sep 15, 2015 at 12:22 | history | edited | Satpal | CC BY-SA 3.0 |
added 28 characters in body
|
| Sep 15, 2015 at 12:21 | history | asked | Carl Wikström | CC BY-SA 3.0 |