Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This is what you put
- array = [];
- array["string"] = "whatever....";
- array["blah"] = "whatever as well...";
- getArrayKeys(array)[0] would equal "string"
- getArrayKeys(array)[1] would equal "blah"
- //Now if i did this
- array = [];
- array["blah"] = "whatever....";
- array["string"] = "whatever as well...";
- getArrayKeys(array)[0] would equal "blah"
- getArrayKeys(array)[1] would equal "string"
- //Is that correct?
- //I switched the blah & string, Why did string come first as the key 0, was it because you set key 0 first..? That what im asking.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement