It is as usual:

The last item in:

http://awrdev.g3tech.in/jquery_tutorials/

Now I will explain some more things.

The array data structure in javascript is not commonly used. Only for iteration.

The associative array, hash data structure is what is heavily used for
passing options for all jQuery APIs.

All of them work with the {} bracket style. The key value pairs are
separated by colon(:).

So

in spidermonkey:

$ js
js> a={name: "Girish", age: 18, hobby: "sleeping"}
({name:"Girish", age:18, hobby:"sleeping"})
js>
js> a["name"]
"Girish"
js>
js> a["hobby"]
"sleeping"
js>
js> b = [2,3,4, "girish"]
[2, 3, 4, "girish"]
js> b[0]
2
js> b[3]
"girish"
js> for(i=0; i < b.len; i++) {
 print(b[i])
}
js> b.len
js> b
[2, 3, 4, "girish"]
js> b.length
4
js> for(i=0; i < b.length; i++) {
 print(b[i])
}
2
3
4
girish
js>


-Girish

-- 
Gayatri Hitech
http://gayatri-hitech.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to